I made a script so that if a players walk speed is at a certain speed they lose health each second heres what I have that does not work.
local Player = game.Players.LocalPlayer
if Player.Character.Humanoid.WalkSpeed >= 200 then
Player.Character.Humanoid.Health = 85
if Player.Character.Humanoid.WalkSpeed >= 300 then
Player.Character.Humanoid.Health = 65
end
end
This is in my starterpack as a local script.

3 comments
Ditto is there a way so every 5 seconds it does 20 damage? @Diito
Yes. Hold on, let me edit my answer.
Done. Sorry for the wait.