XxxLloyd061302xxX

Script for opening the door

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