BumpyPlayz

2x WalkSpeed Gamepass Main Script [Lua]

Oct 28th, 2019
1,435
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.67 KB | None | 0 0
  1. local mps = game:GetService("MarketplaceService")
  2. local gamepassid = 0
  3.  
  4. game.Players.PlayerAdded:Connect(function(player)
  5.     if mps:UserOwnsGamePassAsync(player.UserId, gamepassid) then
  6.         player.CharacterAdded:Connect(function(char)
  7.             char:FindFirstChild("Humanoid").WalkSpeed = 32
  8.             char:FindFirstChild("Humanoid").JumpPower = 100
  9.             -- the default are 16 and 50 respectively
  10.         end)
  11.     else
  12.         script.Gamepass:Clone().Parent = player:WaitForChild("PlayerGui")
  13.     end
  14. end)
  15.  
  16. game.ReplicatedStorage.Purchased.OnServerEvent:Connect(function(player)
  17.     player.Character:FindFirstChild("Humanoid").WalkSpeed = 32
  18.     player.Character:FindFirstChild("Humanoid").JumpPower = 100
  19. end)
Advertisement
Add Comment
Please, Sign In to add comment