My anti-fly exploit is not working and is claiming that "HumanoidRootPart" is not in the player?
Asked by
6 years ago Edited 6 years ago
03 | math.randomseed(os.time()) |
06 | local name = math.random() |
12 | local plr = game.Players.LocalPlayer |
13 | local bp = plr.Backpack |
14 | local char = plr.Character |
18 | char.HumanoidRootPart.ChildAdded:connect( function (l) |
19 | if l.ClassName ~ = "BodyGyro" then |
20 | plr:Kick( "Fly Hacking" ) |
24 | char.UpperTorso.ChildAdded:connect( function (l) |
25 | if l.ClassName ~ = "BodyGyro" then |
26 | plr:Kick( "Fly Hacking" ) |
30 | char.LowerTorso.ChildAdded:connect( function (l) |
31 | if l.ClassName ~ = "BodyGyro" then |
32 | plr:Kick( "Fly Hacking" ) |
This script was to kick players who are fly hacking, but I keep getting "HumanoidRootPart is not in model" in console? Any fixes?