Now I have this script that allows people to buy a Game pass and get speed and it works. But then you run into a problem instead of giving them the speed every time the re spawn in the game they only get it the first life and I want them to have it the whole entire game every time they join. Say I want to add 9 speed it would the first life but then they don't have it for the rest of the game and I want them to have it forever no matter what. My script that Goulstem helped me with:
local gps = game:GetService("GamePassService"); local id = script:WaitForChild("GamePassID"); local Speed = script:WaitForChild("WalkSpeedAmount"); game.Players.PlayerAdded:connect(function(Player) Player:WaitForDataReady() if gps:PlayerHasPass(Player , id.Value) then repeat wait() until Player.Character~=nil local hum = Player.Character.Humanoid hum.WalkSpeed = hum.WalkSpeed + Speed.Value end end)
There is two things in the script a GamePassID which it the ID and the WalkSpeedAmount which is how much speed you want to add. Please help if you can. THANKS!