Why don't you just use this?
game.Players.PlayerAdded:connect(function(player)
char = player.Character
human = char:FindFirstChild("Humanoid")
human.Changed:connect(function(WalkSpeed)
if human.Walkspeed ~= 16 then
[Stuff Here]
end
end)
end)
This way you don't have the lag of a loop. |