I am currently making a door and only the group owner can make the door open and close the door. Here is what I have so far:
GroupId = 3348123
script.Parent.ClickDetector.MouseClick:connect(function(p)
if p:IsInGroup(3348123) then
script.Parent.Transparency = 1
script.Parent.CanCollide = false
end
end)
I it so when the group owner clicks the door again to close it Transparency = 0 and CanCollide = true.
Please help me, thank you!

1 comment
It says MoustButton1Click is not a vaild member of ClickDetector.