Hello! I have been trying to get this to loop, and not only go off when you join the game. I tried adding a "while true do" along with "wait(3)" but it caused Roblox studio to crash. Thank you so much.
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(character)
if game.GamePassService:PlayerHasPass(plr,1131172400) then
character.Humanoid.WalkSpeed = plr.leaderstats["Steps"].Value + 1
else character.Humanoid.WalkSpeed = plr.leaderstats["Steps"].Value + 1
end
end)
end)
*I need it to update every 3 seconds because the points are going to affect the speed. Thank you for your help.
