Advertisement
Jaden11

Chat commands(2) ROBLOX

Dec 27th, 2014
405
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.90 KB | None | 0 0
  1. local admins = {"TheVr3millionCoder"}
  2. function tableContains(t, value)
  3. for _, v in pairs(t) do
  4. if v == value then
  5. return true
  6. end
  7. end
  8. return false
  9. end
  10.  
  11. function onChatted(message, player)
  12. if message == "reset" and tableContains(admins, player.Name) then
  13. player.Character:BreakJoints()
  14. end
  15. end
  16.  
  17. game.Players.PlayerAdded:connect(function(player)
  18. player.Chatted:connect(function(message) onChatted(message, player) end)
  19. end)
  20.  
  21.  
  22. function tableCotains(t, vaule)
  23. for _, v in pairs(t) do
  24. if v == false then
  25. return true
  26.  
  27. end
  28. end
  29. return false
  30. end
  31.  
  32. function onChatted(message, player)
  33. if message == "kill" and tableContains(admins, player.Name) then
  34. player.Character.Humanoid.Health = 0
  35. end
  36. end
  37.  
  38. game.Players.PlayerAdded:connect(function(player)
  39. player.Chatted:connect(function(message) onChatted(message, player) end)
  40. end)
  41.  
  42. function tableContains(t, vaule)
  43. for _, v in pairs(t) do
  44. if v == false then
  45. return true
  46.  
  47. end
  48. end
  49. return false
  50. end
  51.  
  52. function onChatted(message, player)
  53. if message == "noob" and tableContains(admins, player.Name) then
  54. player.Chatted:connect(function(message) onChatted(message, player) end)
  55. player.Character.Char = noob
  56. end
  57. end
  58.  
  59.  
  60. function tableContains(t, vaule)
  61. for _, v in pairs(t) do
  62. if v == false then
  63. return true
  64. end
  65. return false
  66. end
  67.  
  68. function onChatted(message, player)
  69. if message == "hi" and tableContains(admins, player.Name) then
  70. player.Chatted:connect(function(message) onChatted(message, player) end)
  71. print("Hi")
  72. end
  73. end
  74. end
  75.  
  76. function tableContains(t, vaule)
  77. for _, v in pairs(t) do
  78. if v == false then
  79. return true
  80.  
  81. end
  82. end
  83. return false
  84. end
  85.  
  86. function onChatted(message, player)
  87. if message == "sit" and tableContains(admins, player.Name) then
  88. player.Chatted:connect(function(message) onChatted(message, player) end)
  89. end
  90. end
  91.  
  92. function onChatted(c, vaule)
  93. for _, c in pairs(c) do
  94. if c == false then
  95. return true
  96.  
  97. end
  98. end
  99. return false
  100. end
  101.  
  102. function onChatted(message, player)
  103. if message == "c" and tableContains(admins, player.Name) then
  104. player.Chatted:connect(function(message) onChatted(message, player) end)
  105.  
  106. end
  107. end
  108.  
  109.  
  110.  
  111.  
  112. function onChatted(b, vaule)
  113. for _, b in pairs(b) do
  114. if b == false then
  115. return true
  116.  
  117. end
  118. end
  119. return false
  120. end
  121.  
  122. function onChatted(message, player)
  123. if message == "ban" and tableContains(admins, player.Name) then
  124. player.Chatted:connect(function(message) onChatted(message, player) end)
  125. player:remove()
  126. end
  127. end
  128.  
  129. function onChatted(a, vaule)
  130. for _, a in pairs(a) do
  131. if a == false then
  132. end
  133. return true
  134. end
  135. return false
  136. end
  137.  
  138. function onChatted(message, player)
  139. if message == "message" and tableContains(admins, player.Name) then
  140. player.Chatted:connect(function(message) onChatted(message, player) end)
  141. end
  142. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement