Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My anti-fly exploit is not working and is claiming that "HumanoidRootPart" is not in the player?

Asked by
SpiralRBX 224 Moderation Voter
6 years ago
Edited 6 years ago
01-------------------------------
02--random name
03math.randomseed(os.time())
04for i = 1,157 do
05 
06local name = math.random()
07script.Name = name
08end
09--so hackers cant delete the script
10--------------------------------
11 
12local plr = game.Players.LocalPlayer
13local bp = plr.Backpack
14local char = plr.Character
15 
View all 34 lines...

This script was to kick players who are fly hacking, but I keep getting "HumanoidRootPart is not in model" in console? Any fixes?

1 answer

Log in to vote
1
Answered by
Nogalo 148
6 years ago

It is often useful to wait for some parts

1local hum = player.Character:WaitForChild("HumanoidRootPart")

Creating a starting variable like this will often solve the problem

0
I found an alternative way. But you did teach me something that will help me very much, so I still accepted the answer. SpiralRBX 224 — 6y
0
Glad i could be of help Nogalo 148 — 6y
Ad

Answer this question