I'm making a script thats inside a part, so whenever someone with a humanoid touches it, the script changes their walkspeed to 65. But it doesn't work!
Script:
script.Parent.Touched:connect(function(hit)
local hum = hit.Parent.Humanoid
if hum then
hum.Walkspeed = 30
else
print("No hum")
end
end)
Please help?

1 comment
Thanks! Can you also help me with this? https://scriptinghelpers.org/questions/13845/how-do-i-give-an-item-to-the-player-who-bought-a-gamepass