Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local id = 456331269 -- insert the id of your gamepass/vip where the numbers are
- script.Parent.Touched:connect(function(hit)
- if hit.Parent:FindFirstChild('Humanoid') then
- local player = game.Players:GetPlayerFromCharacter(hit.Parent)
- if game:GetService('MarketplaceService'):PlayerOwnsAsset(player,id) then
- script.Parent.CanCollide = false
- script.Parent.Transparency = 0.7
- wait(3)
- script.Parent.CanCollide = true
- script.Parent.Transparency = 0.5
- else
- hit.Parent:BreakJoints()
- end
- end
- end)
- -- you need to put this on a block
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement