Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script.Parent.ClickDetector.MouseClick:connect(function(player)
- if script.Parent.Parent.Owner.Value == player.Name then
- script.Parent.Parent.Door.CanCollide = true
- script.Parent.Parent.Door.Transparency = 0
- -- This script is used for closing the door. But lets make it sure that the owner clicks the button not other player
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement