Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --(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
- 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.
- --(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
- local script = script.parent:FindFirstChild("player")
- player.Touched:connect(function()
- print("Finally found a player")
- 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?
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- character:WaitForChild("HumanoidRootPart").Touched:Connect(function()
- print("Found a player")
- end)
- --"FindFirstChildOfClass"- also this one just like look the same is find object by "name" of class yeah you could find anything to you want
- --"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
- Print(IsA("AnyName")). <---actually you could edit and use other methods than print then after you do that
- You use "Parent:FindFirstChildWhichIsA("AnyName")
- ^ actually you could use Other stuff than just parent like
- Local part or local characters object: FindFirstChildWhichIsA("AnyName") then active any script after is founded
- --(Cframe Teleport script)-------------------------
- game.player.LocalPlayer.character.HumaniodRootPart
- local location = Cframe.new(you Cframe Locations number inside of here)
- local Humaniod = game.player.character.HumaniodRoot:ChangeState(Enum.HumaniodStateTypeJumping)
- wait(1)
- pl.Cframe = location
- ---WARNING BEFORE EXECUTE IF YOU FEAR THAT THIS SCRIPT WILL NOT WORK DELETE ALL THE TIPS DOWN HERE INCLUDING THIS TOO
- ---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"
- --- or something well if you don't know how to use infinite yield just use the script i showed here
- ---dont worry this script showed is hidden from execution
- ---local pl = game.localplayer.character.HumaniodRootPart Print(pl.Cframe)
- ---this script might outdated
- ---------------------------------------------------
- --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)"
- After that use = for example like local tools = player(then you could any script after that cus there alot)
- Or for example like this number = 2
- 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
- --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
- Or is used for return a module script basically explain it easy is use it when you use module script examples
- local module = player
- Function module.function()
- --any script
- End
- ---after that you use
- ---for example you use that kind of script exploit on shotgun from prison life and that has module script
- local gun = require()game.LocalPlayer.backpack.["Remington700"]."gunstate"
- --you script here
- ---what is "module script"?-well this script is just like toolbox you will need this in some of script you creating idk about this
- --what is "dot" on lua roblox script exploit-------
- 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
- local player = game.player.localplayer
- local characters = script.parent:FindFirstChild("Humanoid")
- character.Touched:Connect(function()
- print("hello")
- end)
- --"what is "local"--this keyword used for lot of script and lot of exploit for example like this script
- local player = 20
- print(10) ---output is 10
- local player = 20
- print(player) ---output is 20
- --let see what mostly exploiter used on Roblox
- --most of exploiter use "local" on roblox alot
- --example
- local player = game.Players.LocalPlayer
- ---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
- ---"CharacterAdded"--Well lemme explain examples of this code for example player joined you game
- local player = game.Players.LocalPlayer
- print("Welcome, player")
- game.Players.PlayerAdded:Connect(function(newPlayer)
- print("Hello again, " .. newPlayer.Name)
- end)
- ---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
- ---"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
- ---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