Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why is my anti speed hack not working?

I recently put in a local script this code in startercharacterscripts:

humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function() 
	if humanoid.WalkSpeed ~= 16 then
		player:Kick()
	end
end)

but it doesn't work at all on the exploiter, they keep changing their walkspeed to like 100 and the script is not detecting them at all. There's more to the script with detecting other stuff but none of it works on the exploiter, it's like the whole script is not detecting them. Is there any way I can fix this anti exploit?

3 comments

0

Have you tried using a server script?

0

^^ Like UgOsMily said, You can't use kick with a local script

0

if hum.WalkSpeed ~= 16 then repeat until nil end

1 answer

Why don't you do like:

humanoid.Changed:connect(function()
if humanoid.WalkSpeed ~= 16 then
player:Kick("Error occured: Walkspeed changed")
end
end)

2 comments

0

It's still not working, the script isn't harming them at all

0

Is filtering enabled on?

This discussion is preserved as it was. New answers, comments, and votes are closed.