Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mps = game:GetService("MarketplaceService")
- local gamepassid = 0
- game.Players.PlayerAdded:Connect(function(player)
- if mps:UserOwnsGamePassAsync(player.UserId, gamepassid) then
- player.CharacterAdded:Connect(function(char)
- char:FindFirstChild("Humanoid").WalkSpeed = 32
- char:FindFirstChild("Humanoid").JumpPower = 100
- -- the default are 16 and 50 respectively
- end)
- else
- script.Gamepass:Clone().Parent = player:WaitForChild("PlayerGui")
- end
- end)
- game.ReplicatedStorage.Purchased.OnServerEvent:Connect(function(player)
- player.Character:FindFirstChild("Humanoid").WalkSpeed = 32
- player.Character:FindFirstChild("Humanoid").JumpPower = 100
- end)
Advertisement
Add Comment
Please, Sign In to add comment