I have tried various solutions, even keycards and such but I'm completely lost. Here's my code:
function onClicked ()
script.Parent.Parent.Parent.Parent.mistake.m.HingeConstraint.TargetAngle = -90
wait(3)
script.Parent.Parent.Parent.Parent.mistake.m.HingeConstraint.TargetAngle = 0
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
The script is functional, but I'd like for it to only work when certain (several) teams click on it.
