Advertisement
faisalhacksnock

Untitled

Jul 28th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.75 KB | None | 0 0
  1. function onChatted(msg, recipient, speaker)
  2.  
  3. -- convert to all lower case
  4.  
  5. local source = string.lower(speaker.Name)
  6. msg = string.lower(msg)
  7.  
  8.  
  9. if (msg == "day") then
  10. game.Lighting.TimeOfDay = "14:00:00"
  11. end
  12.  
  13.  
  14. if (msg == "night") then
  15. game.Lighting.TimeOfDay = "00:00:00"
  16. end
  17.  
  18. if (msg == "normal") then
  19.  
  20. game.Lighting.TimeOfDay = "0:00:00"
  21. game.Lighting.TopAmbientV9 = Color3.new(215,214,223)
  22. game.Lighting.SpotLightV9 = Color3.new(197,197,197)
  23. game.Lighting.BottomAmbientV9 = Color3.new(122,140,120)
  24. game.Lighting.TimeOfDay = "14:00:00"
  25.  
  26. end
  27.  
  28. if (msg == "neon") then
  29.  
  30. game.Lighting.TopAmbientV9 = Color3.new(0,255,255)
  31. game.Lighting.SpotLightV9 = Color3.new(0,255,255)
  32. game.Lighting.BottomAmbientV9 = Color3.new(0,255,255)
  33.  
  34. end
  35.  
  36. if (msg == "red") then
  37.  
  38. game.Lighting.TopAmbientV9 = Color3.new(255,0,0)
  39. game.Lighting.SpotLightV9 = Color3.new(255,0,0)
  40. game.Lighting.BottomAmbientV9 = Color3.new(255,0,0)
  41.  
  42. end
  43.  
  44. if (msg == "yellow") then
  45.  
  46. game.Lighting.TopAmbientV9 = Color3.new(255,255,0)
  47. game.Lighting.SpotLightV9 = Color3.new(255,255,0)
  48. game.Lighting.BottomAmbientV9 = Color3.new(255,255,0)
  49.  
  50. end
  51.  
  52. if (msg == "green") then
  53. --These colour changes are thanks to clockwork's Avada kadavra! tool. I just changes the numbers =)
  54. game.Lighting.TopAmbientV9 = Color3.new(0,255,0)
  55. game.Lighting.SpotLightV9 = Color3.new(0,255,0)
  56. game.Lighting.BottomAmbientV9 = Color3.new(0,255,0)
  57.  
  58. end
  59.  
  60. if (msg == "blue") then
  61.  
  62. game.Lighting.TopAmbientV9 = Color3.new(0,0,255)
  63. game.Lighting.SpotLightV9 = Color3.new(0,0,255)
  64. game.Lighting.BottomAmbientV9 = Color3.new(0,0,255)
  65.  
  66. end
  67.  
  68. if (msg == "black") then
  69.  
  70. game.Lighting.TimeOfDay = "00:00:00"
  71. game.Lighting.TopAmbientV9 = Color3.new(0,0,0)
  72. game.Lighting.SpotLightV9 = Color3.new(0,0,0)
  73. game.Lighting.BottomAmbientV9 = Color3.new(0,0,0)
  74.  
  75. end
  76.  
  77. if (msg == "white") then
  78.  
  79. game.Lighting.TimeOfDay = "00:00:00"
  80. game.Lighting.TopAmbientV9 = Color3.new(255,255,255)
  81. game.Lighting.SpotLightV9 = Color3.new(255,255,255)
  82. game.Lighting.BottomAmbientV9 = Color3.new(255,255,255)
  83.  
  84. end
  85.  
  86. -- Below is the admin commands.
  87. if (source ~= "epicikr") then return end --Change brandonhare to your name.
  88.  
  89. if (msg == "die") then --Change this if you want.
  90. local m = Instance.new("Message")
  91. m.Text = "EVERYONE IS GONNA DIE!!!!!!!!!!"--Change this if you want.
  92. m.Parent = game.Workspace
  93. wait(4)
  94. local c = game.Players:children()
  95. for i=1,#c do
  96. if (string.lower(c[i].Name) ~= "epicikr") then
  97. if (c[i].Character ~= nil and c[i].Character.Humanoid ~= nil) then
  98. c[i].Character.Humanoid.Health = 0
  99. end
  100. end
  101. end
  102. wait(2)
  103. m.Parent = nil
  104. end
  105.  
  106. if (msg == "peoplewhite") then
  107. local c = game.Players:children()
  108. for i=1,#c do
  109. if (string.lower(c[i].Name) ~= "epicikr") then --Change brandonhare to your name.
  110. if (c[i].Character ~= nil and c[i].Character.Humanoid ~= nil) then
  111. c[i].Character:findFirstChild("Head").BrickColor = BrickColor.new(1)
  112. c[i].Character:findFirstChild("Torso").BrickColor = BrickColor.new(1)
  113. c[i].Character:findFirstChild("Left Arm").BrickColor = BrickColor.new(1)
  114. c[i].Character:findFirstChild("Right Arm").BrickColor = BrickColor.new(1)
  115. c[i].Character:findFirstChild("Left Leg").BrickColor = BrickColor.new(1)
  116. c[i].Character:findFirstChild("Right Leg").BrickColor = BrickColor.new(1)
  117.  
  118. end
  119. end
  120. end
  121. end
  122.  
  123. if (msg == "freeze") then
  124. local c = game.Players:children()
  125. for i=1,#c do
  126. if (string.lower(c[i].Name) ~= "epicikr") then --Change brandonhare to your name.
  127. if (c[i].Character ~= nil and c[i].Character.Humanoid ~= nil) then
  128. c[i].Character:findFirstChild("Torso").Anchored = true
  129.  
  130. end
  131. end
  132. end
  133. end
  134.  
  135. if (msg == "thaw") then
  136. local c = game.Players:children()
  137. for i=1,#c do
  138. if (string.lower(c[i].Name) ~= "epicikr") then --Change brandonhare to your name.
  139. if (c[i].Character ~= nil and c[i].Character.Humanoid ~= nil) then
  140. c[i].Character:findFirstChild("Torso").Anchored = false
  141.  
  142. end
  143. end
  144. end
  145. end
  146.  
  147.  
  148. if (msg == "savagebeating") then --You may want to change this.
  149. local m = Instance.new("Message")
  150. m.Text = "OH NO! INVISIBLE MONKEYS ARE GOING TO HURT YOU!!!!"--Change this. It's random.
  151. m.Parent = game.Workspace
  152. wait(4)
  153. local c = game.Players:children()
  154. for i=1,#c do
  155. if (string.lower(c[i].Name) ~= "epicikr") then --Change brandonhare to your name.
  156. if (c[i].Character ~= nil and c[i].Character.Humanoid ~= nil) then
  157. c[i].Character.Humanoid.Health = 1
  158. end
  159. end
  160. end
  161. wait(2)
  162. m.Parent = nil
  163. end
  164.  
  165. if (msg == "zeekyboogydoog") then--Change this to boom! or somthing if you want too.
  166. local m = Instance.new("Message")
  167. m.Text = "RANDOM PEOPLE ARE SAYING ZEEKY BOOGY DOOG!!!!!!!"--You may want to change this
  168. m.Parent = game.Workspace
  169. wait(4)
  170. for i=1,100 do
  171. local x = math.random(17.5,76.5)
  172. local y = math.random(0,41.6)
  173. local z = math.random(-115,101)
  174.  
  175. local r = math.random(6,16)
  176.  
  177. local ex = Instance.new("Explosion")
  178. ex.Position = Vector3.new(x,y,z)
  179. ex.BlastRadius = r
  180. ex.Parent = game.Workspace
  181. wait(.05)
  182. end
  183. wait(2)
  184. m.Parent = nil
  185. end
  186.  
  187. if (msg == "brandonwantbigboom") then
  188. local m = Instance.new("Message")
  189. m.Text = "THIS LEVEL HAS 4 SECONDS TO LIVE!!!! You may touch the teapot after this."
  190. m.Parent = game.Workspace
  191. wait(4)
  192.  
  193.  
  194. local ex = Instance.new("Explosion")
  195. ex.Position = Vector3.new(29.5,0.2,-7)--Change these numbers or the explosion might be somewhere unuseful.
  196. ex.BlastRadius = 300
  197. ex.Parent = game.Workspace
  198. m.Parent = nil
  199. end
  200.  
  201. if (msg == "listen") then
  202.  
  203. local m = Instance.new("Message")
  204. m.Text = "EVERYONE STOP TALKING AND LISTEN TO Epicikr!!!!!!!!"
  205. m.Parent = game.Workspace --Change BRANDONHARE (above) to your name.
  206. game.Lighting.TopAmbientV9 = Color3.new(255,0,0)
  207. game.Lighting.SpotLightV9 = Color3.new(255,0,0)
  208. game.Lighting.BottomAmbientV9 = Color3.new(255,0,0)
  209. wait(0.5)
  210. game.Lighting.TopAmbientV9 = Color3.new(255,255,0)
  211. game.Lighting.SpotLightV9 = Color3.new(255,255,0)
  212. game.Lighting.BottomAmbientV9 = Color3.new(255,255,0)
  213. wait(0.5)
  214. game.Lighting.TopAmbientV9 = Color3.new(255,0,0)
  215. game.Lighting.SpotLightV9 = Color3.new(255,0,0)
  216. game.Lighting.BottomAmbientV9 = Color3.new(255,0,0)
  217. wait(0.5)
  218. game.Lighting.TopAmbientV9 = Color3.new(255,255,0)
  219. game.Lighting.SpotLightV9 = Color3.new(255,255,0)
  220. game.Lighting.BottomAmbientV9 = Color3.new(255,255,0)
  221. wait(0.5)
  222. game.Lighting.TopAmbientV9 = Color3.new(255,0,0)
  223. game.Lighting.SpotLightV9 = Color3.new(255,0,0)
  224. game.Lighting.BottomAmbientV9 = Color3.new(255,0,0)
  225. wait(0.5)
  226. game.Lighting.TopAmbientV9 = Color3.new(255,255,0)
  227. game.Lighting.SpotLightV9 = Color3.new(255,255,0)
  228. game.Lighting.BottomAmbientV9 = Color3.new(255,255,0)
  229. wait(0.5)
  230. game.Lighting.TopAmbientV9 = Color3.new(255,0,0)
  231. game.Lighting.SpotLightV9 = Color3.new(255,0,0)
  232. game.Lighting.BottomAmbientV9 = Color3.new(255,0,0)
  233. wait(0.5)
  234. game.Lighting.TopAmbientV9 = Color3.new(255,255,0)
  235. game.Lighting.SpotLightV9 = Color3.new(255,255,0)
  236. game.Lighting.BottomAmbientV9 = Color3.new(255,255,0)
  237. wait(0.5)
  238. game.Lighting.TimeOfDay = "0:00:00"
  239. game.Lighting.TopAmbientV9 = Color3.new(215,214,223)
  240. game.Lighting.SpotLightV9 = Color3.new(197,197,197)
  241. game.Lighting.BottomAmbientV9 = Color3.new(122,140,120)
  242. game.Lighting.TimeOfDay = "14:00:00"
  243. m.Parent = nil
  244. --Big eh?
  245. end
  246.  
  247. --Add more commands here. (Just copy and paste an existing one)
  248.  
  249. end
  250.  
  251. function onPlayerEntered(newPlayer)
  252. newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, newPlayer) end)
  253. end
  254.  
  255. game.Players.ChildAdded:connect(onPlayerEntered)
  256.  
  257.  
  258. --meidafire
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement