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

How do I make a script that increases the players walkspeed every second?

I'm trying to make a script that increases the players walkspeed by 1 every second by using a numbervalue but it isn't working, here's the script:

game.Players.PlayerAdded:connect(function(player)
	player.CharacterAdded:connect(function(character)
	character.Humanoid.WalkSpeed = script.Value.Value
	wait(1)
	script.Value.Value + 1
	end)
end)

1 answer

No need for number value

game.Players.PlayerAdded:connect(function(player)
local character = player.Character or player.CharacterAdded:wait()
local Humanoid = character:WaitForChild("Humanoid")
while wait(1) do
Humanoid.WalkSpeed = Humanoid.WalkSpeed + 1
end
end)

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