Advertisement
MawinCK

All lua exploit Roblox i learning #1

May 5th, 2024 (edited)
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.81 KB | None | 0 0
  1. --(Humanoid)-The Humanoid class inherits from Instance. It gives. Models the function of a character and allow it to move and physically interact with physical objects. For example if there part that will alert a red warning on screen when any Humanoid for example i walk to touch a part or my frined in game or ai in my game touch a part or a model i insert or putted into my game like "zombie" ai touch it is will alert everything that Humanoid
  2. In the context of Roblox Lua exploits, a humanoid typically refers to the in-game character controlled by a player. Lua exploits in Roblox often manipulate the behavior of these humanoids, allowing players to do things like teleport, fly, or have unlimited health, among other things. These exploits can give players an unfair advantage in the game and are often used inappropriately.
  3. --(FindFirstChild)-i will explain as what i understand is a script basically for searching instances or object or player or model even it haven't founded yet if the code not founded the object or instances or anything that this code trying to find is will return to nil or just error examples local player = game.player.localplayer
  4. local script = script.parent:FindFirstChild("player")
  5. player.Touched:connect(function()
  6. print("Finally found a player")
  7. end --or use --im using "player" word instead of Humanoid to make it look simple just imagine if "player" is object that has touch event but is doesn't so this script don't work cus you know is examples and "player" word used instead of "Humanoid to make it correct?
  8. local player = game.Players.LocalPlayer
  9. local character = player.Character or player.CharacterAdded:Wait()
  10. character:WaitForChild("HumanoidRootPart").Touched:Connect(function()
  11. print("Found a player")
  12. end)
  13. --"FindFirstChildOfClass"- also this one just like look the same is find object by "name" of class yeah you could find anything to you want
  14. --"FindFirstChildWhichIsA"-idk about this most of these script like people will most use "FindFirstChild" original than these 2 well what this script does? Is will does only when you print or do something that make the script know The name of that object still confused? For example
  15. Print(IsA("AnyName")). <---actually you could edit and use other methods than print then after you do that
  16. You use "Parent:FindFirstChildWhichIsA("AnyName")
  17. ^ actually you could use Other stuff than just parent like
  18. Local part or local characters object: FindFirstChildWhichIsA("AnyName") then active any script after is founded
  19. --(Cframe Teleport script)-------------------------
  20. game.player.LocalPlayer.character.HumaniodRootPart
  21. local location = Cframe.new(you Cframe Locations number inside of here)
  22. local Humaniod = game.player.character.HumaniodRoot:ChangeState(Enum.HumaniodStateTypeJumping)
  23. wait(1)
  24. pl.Cframe = location
  25. ---WARNING BEFORE EXECUTE IF YOU FEAR THAT THIS SCRIPT WILL NOT WORK DELETE ALL THE TIPS DOWN HERE INCLUDING THIS TOO
  26. ---READ THIS:well if you don't know to create a Cframe locations use anything to create it i reccmond you use infinite yield and type command "copyposition"
  27. --- or something well if you don't know how to use infinite yield just use the script i showed here
  28. ---dont worry this script showed is hidden from execution
  29. ---local pl = game.localplayer.character.HumaniodRootPart Print(pl.Cframe)
  30. ---this script might outdated
  31. ---------------------------------------------------
  32. --what is "=" the equal do?-for example I'll explain as what i understand you could use it for copying script for example i put so long line of script like this "local player = game.localplayer.character(long line of script)"
  33. After that use = for example like local tools = player(then you could any script after that cus there alot)
  34. Or for example like this number = 2
  35. local ("anything") = "any script" idk if will work like that cus i don't wanna waste my time on execute script endless there lot of methods that will combo and work with "=" lua code lol I can't say it all
  36. --what is "require" code-well this code used for access some script or code or function So say you have a module script. If you want to access the code or functions inside of it, you use the require function. local module = require() --path to module module.RandomFunc() end
  37. Or is used for return a module script basically explain it easy is use it when you use module script examples
  38. local module = player
  39. Function module.function()
  40. --any script
  41. End
  42. ---after that you use
  43. ---for example you use that kind of script exploit on shotgun from prison life and that has module script
  44. local gun = require()game.LocalPlayer.backpack.["Remington700"]."gunstate"
  45. --you script here
  46. ---what is "module script"?-well this script is just like toolbox you will need this in some of script you creating idk about this
  47. --what is "dot" on lua roblox script exploit-------
  48. Basically is for accessing object name or something I'll explain as what i understand for example you see some of most people will use these "dot" as script exploit alot for example
  49. local player = game.player.localplayer
  50. local characters = script.parent:FindFirstChild("Humanoid")
  51. character.Touched:Connect(function()
  52.  
  53. print("hello")
  54. end)
  55. --"what is "local"--this keyword used for lot of script and lot of exploit for example like this script
  56. local player = 20
  57. print(10) ---output is 10
  58.  
  59. local player = 20
  60. print(player) ---output is 20
  61. --let see what mostly exploiter used on Roblox
  62. --most of exploiter use "local" on roblox alot
  63. --example
  64. local player = game.Players.LocalPlayer
  65. ---this little sentence of script used by some of most exploiter and script maker or else if they didn't use "game.player.LocalPlayer" they use more than just this little script
  66. ---"CharacterAdded"--Well lemme explain examples of this code for example player joined you game
  67. local player = game.Players.LocalPlayer
  68. print("Welcome, player")
  69.  
  70. game.Players.PlayerAdded:Connect(function(newPlayer)
  71. print("Hello again, " .. newPlayer.Name)
  72. end)
  73. ---actually you don't need to always use "local" code you could "actually use other than that actually you use other "name" of object than just "character" in "CharacterAddded" for some of script
  74. ---"CharacterAdded" active when anything Created or joined or actived or putted or triggered or connect or spawned or respawn depend on what script you write it you could put any amount of script after the code "character" effected happened basically just like showing "player joined" "player left" on chat yeah is basic script for event fire
  75. ---this kind of script used by lot of exploiter basically just for autoframing or exploiting for example "npc spawned" exploiter the script "npcAdded" automatically actived and make the exploiter fly to go kill that "npc" with his "item" then the exploiter might have the effect after npc died and he go back to his house after killing npc--that all wait for ep #2 of learning
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement