Advertisement
Nadds

Basic Admin Door Script - ROBLOX

Apr 13th, 2016
486
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. local admins = {"YourUsername"}
  2.  
  3. game.Players.PlayerAdded:connect(function(nP)
  4. for _,v in pairs (admins) do
  5. if nP.Name == v then
  6. nP.Chatted:connect(function(msg)
  7. if (msg:lower() == "youropencommand") then
  8. script.Parent.Transparency = 0.4
  9. script.Parent.CanCollide = false
  10. elseif (msg:lower() == "yourclosecommand') then
  11. script.Parent.Transparency = 0.2
  12. script.Parent.CanCollide = true
  13. end
  14. end)
  15. end
  16. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement