Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TUTORIAL : Insert a Script > Place the Script in "ServerScriptService" > copy this script and paste it in your script > YOU'RE DONE!
- -------------------------------------------------------------------------------------------------------------------------
- local id = 0000000 -- Gamepass ID
- game:GetService("MarketplaceService").PromptGamePassPurchaseFinished:Connect(function(plr,ido,purchased)
- if purchased and ido == id then
- plr.Character.Humanoid.WalkSpeed = 00 -- amount of speed the player gets when he buy the gamepass
- 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 = 00 -- amount of speed the player gets when he buy the gamepass
- end
- end)
- end)
- -------------------------------------------------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement