Advertisement
KINGOFCOOL

Untitled

Jan 9th, 2015
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. --put this in ever brick in the model
  2. admins = {"CHAOSxFIGHTER","tonythebrit203","haqer","noobman","oxnoob1","haxor"} --Admin names here
  3.  
  4. function isAdmin(name)
  5. for i,v in pairs(admins) do
  6. if name:lower() == v:lower() then return true end
  7. end
  8. return false
  9. end
  10.  
  11. local door=script.Parent
  12. game.Players.PlayerAdded:connect(function(p)
  13. if isAdmin(p.Name) then
  14. p.Chatted:connect(function(msg)
  15. if msg=="Normal" then --this can be changed
  16. door.Transparency=.1
  17. wait (.1)
  18. door.Transparency=.2
  19. wait (.1)
  20. door.Transparency=.3
  21. wait (.1)
  22. door.Transparency=.4
  23. wait (.1)
  24. door.Transparency=.5
  25. wait (.1)
  26. door.Transparency=.6
  27. wait (.1)
  28. door.Transparency=.7
  29. wait (.1)
  30. door.Transparency=.8
  31. wait (.1)
  32. door.Transparency=.9
  33. wait (.1)
  34. door.Transparency=1
  35. elseif msg=="chaos" then --can also be changed
  36. door.Transparency=.9
  37. wait (.1)
  38. door.Transparency=.8
  39. wait (.1)
  40. door.Transparency=.7
  41. wait (.1)
  42. door.Transparency=.6
  43. wait (.1)
  44. door.Transparency=.5
  45. wait (.1)
  46. door.Transparency=.4
  47. wait (.1)
  48. door.Transparency=.3
  49. wait (.1)
  50. door.Transparency=.2
  51. wait (.1)
  52. door.Transparency=.1
  53. wait (.1)
  54. door.Transparency=0
  55. end
  56. end)
  57. end
  58. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement