Advertisement
XxxLloyd061302xxX

Script for closing the door

Jul 5th, 2018
4,742
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. script.Parent.ClickDetector.MouseClick:connect(function(player)
  2.     if script.Parent.Parent.Owner.Value == player.Name then
  3.         script.Parent.Parent.Door.CanCollide = true
  4.         script.Parent.Parent.Door.Transparency = 0
  5.         -- This script is used for closing the door. But lets make it sure that the owner clicks the button not other player
  6.     end
  7. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement