Advertisement
Jonny_Zuko_onYoutube

vip only door roblox

Dec 13th, 2019
3,251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. local id = 456331269 -- insert the id of your gamepass/vip where the numbers are
  2.  
  3. script.Parent.Touched:connect(function(hit)
  4. if hit.Parent:FindFirstChild('Humanoid') then
  5. local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  6. if game:GetService('MarketplaceService'):PlayerOwnsAsset(player,id) then
  7. script.Parent.CanCollide = false
  8. script.Parent.Transparency = 0.7
  9. wait(3)
  10. script.Parent.CanCollide = true
  11. script.Parent.Transparency = 0.5
  12. else
  13. hit.Parent:BreakJoints()
  14.  
  15. end
  16. end
  17. end)
  18.  
  19. -- you need to put this on a block
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement