Advertisement
RoScripter

Keybind Door Server

Jun 19th, 2020
2,060
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. local Door = script.Parent.Door
  2.  
  3. script.Parent.ToggleDoor.OnServerEvent:Connect(function()
  4.     if Door.Transparency == 0 then
  5.         Door.Transparency = 1
  6.         Door.CanCollide = false
  7.     else
  8.         Door.Transparency = 0
  9.         Door.CanCollide = true
  10.     end
  11. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement