Advertisement
Guest User

Untitled

a guest
Jun 19th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1.  
  2. local MarketplaceService = game:GetService("MarketplaceService")
  3.  
  4. local Players = game:GetService("Players")
  5.  
  6. local passId = 4680408 -- change this to your game pass ID.
  7.  
  8. local function onPlayerAdded(player)
  9. local char = player.CharacterAdded:Wait()
  10.  
  11. local hasPass = false
  12.  
  13. hasPass = MarketplaceService:UserOwnsGamePassAsync(player.UserId, passId)
  14.  
  15. if hasPass == true then
  16. char.Humanoid.WalkSpeed = 32
  17.  
  18. end
  19.  
  20. end
  21.  
  22. Players.PlayerAdded:Connect(onPlayerAdded)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement