Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local MarketplaceService = game:GetService("MarketplaceService")
- local Players = game:GetService("Players")
- local passId = 4680408 -- change this to your game pass ID.
- local function onPlayerAdded(player)
- local char = player.CharacterAdded:Wait()
- local hasPass = false
- hasPass = MarketplaceService:UserOwnsGamePassAsync(player.UserId, passId)
- if hasPass == true then
- char.Humanoid.WalkSpeed = 32
- end
- end
- Players.PlayerAdded:Connect(onPlayerAdded)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement