Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local groupId = 0 -- Insert Group Id Here
- script.Parent.Touched:connect(function(hit)
- local hum = hit.Parent:findFirstChild("Humanoid")
- if hum then
- local player = game.Players:GetPlayerFromCharacter(hit.Parent)
- if player then
- if player:IsInGroup(groupId) then
- script.Parent.Transparency = 0.8
- script.Parent.CanCollide = false
- wait(1)
- script.Parent.Transparency = 0
- script.Parent.CanCollide = true
- end
- end
- end
- end)
- -- if the player has joined the group and has touched the brick, it will let them through. Make sure to copy the id of the group and paste it where the group id = 0 is.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement