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 = false
- script.Parent.Parent.Door.Transparency = 0.5
- -- This script is used for opening the door. But lets make it sure that the owner clicks the button not other player
- end
- end)
Add Comment
Please, Sign In to add comment