Advertisement
P_YStudio

Gamepass Door Roblox Studio

Apr 28th, 2023
1,865
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | Gaming | 0 0
  1. local MarketplaceService = game:GetService("MarketplaceService")
  2.  
  3. local gamePassId = 144637438
  4.  
  5. script.Parent.MouseClick:Connect(function(Player)
  6.  
  7.     if MarketplaceService:UserOwnsGamePassAsync(Player.UserId, gamePassId) == true then
  8.  
  9.         script.Parent.Parent.Transparency = 1
  10.         script.Parent.Parent.CanCollide = false
  11.  
  12.     end
  13.  
  14. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement