Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- || 📜 AUTHOR: @4zx16 || DEFAULT GAMEPASS HANDLER || ONLY MESS WITH ID AND THEN THE FUNCTIONS YOU WANT IT TO DO.
- ]]
- local MPS = game:GetService("MarketplaceService")
- local RS = game:GetService("ReplicatedStorage")
- local id = 0
- game.Players.PlayerAdded:Connect(function(plr)
- if MPS:UserOwnsGamePassAsync(plr.UserId, id) then
- print(plr.Name.. " owns GamepassId ".. id)
- -- then this happens
- end
- end)
- RS.Active.OnServerEvent:Connect(function(plr)
- if MPS:UserOwnsGamePassAsync(plr.UserId, id) then
- print(plr.Name.. " owns GamepassId ".. id)
- -- then this happens
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement