Sir_Spaceboi

Scrip #2

Dec 17th, 2020
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. game.Players.PlayerAdded:Connect(function(p)
  2. local on = false
  3. local ID = 12570545
  4. local MarketPlaceService = game:GetService("MarketplaceService")
  5. p.Chatted:Connect(function(m)
  6. if m == "/speed on" then
  7. if MarketPlaceService:UserOwnsGamePassAsync(p.UserId, ID) then
  8. on = true
  9. p.Character.Humanoid.WalkSpeed = 32
  10. end
  11. end
  12. if m == "/speed off" and on == true then
  13. on = false
  14. p.Character.Humanoid.WalkSpeed = 16
  15. print("Speed off")
  16. end
  17. end)
  18. end)
Advertisement
Add Comment
Please, Sign In to add comment