well i need some help im trying to make a humanoid localscript that prevent hackers to rename their humanoids but i can't set them to humanoid name if renamed by the way here is the code
while wait(0.00) do if script.Parent ~= script.Parent.Name.Humanoid then script.Parent.Parent.Name = "Humanoid" script.Parent.Parent.WalkSpeed = 3 script.Parent.Parent:TakeDamage(50) end end
can you help me here?
You can either turn on FilteringEnabled like Faazo said above, or you check all Children of the Character Model every few seconds, and check if the ClassType is a Humanoid
for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do --gets children of player character if v:IsA("Humanoid") then --checks the ClassName v.Name = "Humanoid" --renames end end
Make a local script inside StarterGui
while true do if game.Players.LocalPlayer.Character.Humanoid.Name = "Humanoid" do print(sucsess) else game.Players.LocalPlayer:Kick("Kicked for Executing Exploits") end
it should work because it's scanning the humanoids name over and over again and if the name gets changed then it kicks em.