Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Watch my tutorial to understand this script: https://youtu.be/TXkRiHSg41o
- local doorPart = game.Workspace.VIPdoor
- local MarketPlaceService = game:GetService("MarketplaceService")
- local player = game.Players.LocalPlayer
- local passId = 12289847
- local ownsGamePass = MarketPlaceService:UserOwnsGamePassAsync(player.UserId, passId)
- if ownsGamePass then
- print("User owns gamepass") --so we can see in the output if the player owns the ownsGamePass
- doorPart.CanCollide = false
- else
- print("User doesn't own the gamepass")
- doorPart.CanCollide = true
- end
Add Comment
Please, Sign In to add comment