I'm making a tycoon with this script but how will i add to make this like only the tycoon owner can click the button?
function onClicked()
script.Parent.Parent.Door.Transparency= 0.5
script.Parent.Parent.Door.CanCollide= false
wait(3)
script.Parent.Parent.Door.Transparency= 0
script.Parent.Parent.Door.CanCollide= true
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
