I was wondering if there was a way that I could make a super speed game pass that can be bought during the game by clicking a text button on the side of the screen. I've tried this script but it didn't work:
local id = 8958899
game:GetService("MarketplaceService").PromptGamePassPurchaseFinished:Connect(function(plr,ido,purchased) if purchased and ido == id then plr.Character.Humanoid.WalkSpeed = 40 end end) game.Players.PlayerAdded:Connect(function(plr) plr.CharacterAdded:Connect(function(char) if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(game.Players[char.Name].UserId, id) then char.Humanoid.WalkSpeed = 200 end end) end)
