Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local groupId = 4875330 -- Group ID
- local door = script.Parent
- local debounce = false
- door.Touched:connect(function(part)
- local plr = game.Players:GetPlayerFromCharacter(part.Parent)
- if plr then
- if plr:IsInGroup(4875330) then
- if plr:GetRoleInGroup(4875330) == 'Co-Founder' or plr:GetRoleInGroup(4875330) == 'Director' or plr:GetRoleInGroup(4875330) == 'Founder' or plr:GetRoleInGroup(4875330) == '15 | President' or plr:GetRoleInGroup(4875330) == '14 | Advisor' plr:GetRoleInGroup(4875330) == '13 | Executive'
- if not debounce then
- debounce = true
- door.Transparency = 0.5
- door.CanCollide = false
- wait(1)
- door.Transparency = 0
- door.CanCollide = true
- debounce = nil
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment