Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.Players.PlayerAdded:Connect(function(p)
- local on = false
- local ID = 12570545
- local MarketPlaceService = game:GetService("MarketplaceService")
- p.Chatted:Connect(function(m)
- if m == "/speed on" then
- if MarketPlaceService:UserOwnsGamePassAsync(p.UserId, ID) then
- on = true
- p.Character.Humanoid.WalkSpeed = 32
- end
- end
- if m == "/speed off" and on == true then
- on = false
- p.Character.Humanoid.WalkSpeed = 16
- print("Speed off")
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment