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?

1 comment
turning on filtering enabled is an easier and faster way to solve this. turn it on in workspace properties.