Advertisement
RobloxScripty

Untitled

Jun 28th, 2017
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.47 KB | None | 0 0
  1. ai = false
  2. print("Bot loaded")
  3. print("Loading model")
  4. m = Instance.new("Model")
  5. m.Name = "Bot"
  6. m.Parent = game.Workspace
  7. head = Instance.new("Part")
  8. head.Name = "Head"
  9. head.Position = Vector3.new(6, 5.3, -0.5)
  10. head.Size = Vector3.new(2, 1, 1)
  11. head.formFactor = 0
  12. head.BrickColor = BrickColor.new("Cool yellow")
  13. head.Parent = m
  14. head.Locked = true
  15. torso = Instance.new("Part")
  16. torso.Name = "Torso"
  17. torso.Position = Vector3.new(6, 3.8, -0.5)
  18. torso.LeftSurface = 2
  19. torso.RightSurface = 2
  20. torso.Size = Vector3.new(2, 2, 1)
  21. torso.formFactor = 0
  22. torso.BrickColor = BrickColor.new("White")
  23. torso.Parent = m
  24. torso.Locked = true
  25. la = Instance.new("Part")
  26. la.Name = "Left Arm"
  27. la.Position = Vector3.new(7.5, 3.8, -0.5)
  28. la.Size = Vector3.new(1, 2, 1)
  29. la.formFactor = 0
  30. la.BrickColor = BrickColor.new("Cool yellow")
  31. la.Parent = m
  32. la.Locked = true
  33. ra = Instance.new("Part")
  34. ra.Name = "Right Arm"
  35. ra.Position = Vector3.new(4.5, 3.8, -0.5)
  36. ra.Size = Vector3.new(1, 2, 1)
  37. ra.formFactor = 0
  38. ra.BrickColor = BrickColor.new("Cool yellow")
  39. ra.Parent = m
  40. ra.Locked = true
  41. ll = Instance.new("Part")
  42. ll.Name = "Left Leg"
  43. ll.Position = Vector3.new(6.5, 1.8, -0.5)
  44. ll.Size = Vector3.new(1, 2, 1)
  45. ll.formFactor = 0
  46. ll.BrickColor = BrickColor.new("Medium blue")
  47. ll.Parent = m
  48. ll.Locked = true
  49. rl = Instance.new("Part")
  50. rl.Name = "Right Leg"
  51. rl.Position = Vector3.new(5.5, 1.8, -0.5)
  52. rl.Size = Vector3.new(1, 2, 1)
  53. rl.formFactor = 0
  54. rl.BrickColor = BrickColor.new("Medium blue")
  55. rl.Parent = m
  56. rl.Locked = true
  57. h = Instance.new("Humanoid")
  58. h.Parent = m
  59. me = Instance.new("SpecialMesh")
  60. me.Parent = head
  61. me.Scale = Vector3.new(1.25,1.25,1.25)
  62. d = Instance.new("Decal")
  63. d.Parent = head
  64. d.Name = "face"
  65. d.Texture = "http://www.roblox.com/asset/?id=47656533"
  66. head:makeJoints(); m.Torso:makeJoints()
  67. torso:makeJoints(); m.Torso:makeJoints()
  68. la:makeJoints(); m.Torso:makeJoints()
  69. ra:makeJoints(); m.Torso:makeJoints()
  70. ll:makeJoints(); m.Torso:makeJoints()
  71. rl:makeJoints(); m.Torso:makeJoints()
  72. print("Loading player")
  73. pl = game.Players.LocalPlayer
  74. pl.Character = game.Workspace.Bot
  75. pl.Parent = nil
  76. pl.Character = m
  77. game.Workspace.CurrentCamera.CameraSubject = m.Head
  78. game.Workspace.CurrentCamera.CameraType = "Follow"
  79. function findPlayer(str)
  80. result = nil
  81. for i,v in pairs(game.Players:GetPlayers()) do
  82. if (string.find(string.lower(v.Name), str) == 1) then
  83. if (result ~= nil) then return nil end
  84. result = v
  85. end
  86. end
  87. return result
  88. end
  89. Backup1 = m:GetChildren()
  90. Backup2 = {}
  91. for i=1, #Backup1 do
  92. if Backup1[1].className == "Part" or Backup1[1].className == "Humanoid" then
  93. table.insert(Backup2, Backup1[i]:clone())
  94. end
  95. end
  96. local co = 1
  97. pl.Chatted:connect(function(msg)
  98. if (msg == "greet") then
  99. game:GetService("Chat"):Chat(m.Head,"Hello there. My name is Bot. I enjoy greeting people.",Enum.ChatColor.Green)
  100. if (msg == "help") then
  101. game:GetService("Chat"):Chat(m.Head,"Need help? Just call for me!",Enum.ChatColor.Blue)
  102. if (msg == "rage") then
  103. game:GetService("Chat"):Chat(m.Head,"Don't bother me, I'm not in the mood right now.",Enum.ChatColor.Red)
  104. elseif (string.sub(msg,1,4)) == "!do " then
  105. pcall(loadstring(string.sub(msg,5)))
  106. elseif (string.sub(msg,1,2)) == "k " then
  107. p = findPlayer(string.sub(msg,3))
  108. if p ~= nil then
  109. p.Character:BreakJoints()
  110. end
  111. elseif (string.sub(msg,1,4)) == "nbc " then
  112. p = findPlayer(string.sub(msg,5))
  113. if p ~= nil then
  114. p.MembershipTypeReplicate = 0
  115. end
  116. elseif (string.sub(msg,1,3)) == "bc " then
  117. p = findPlayer(string.sub(msg,4))
  118. if p ~= nil then
  119. p.MembershipTypeReplicate = 1
  120. end
  121. elseif (string.sub(msg,1,4)) == "tbc " then
  122. p = findPlayer(string.sub(msg,5))
  123. if p ~= nil then
  124. p.MembershipTypeReplicate = 2
  125. end
  126. elseif (string.sub(msg,1,4)) == "obc " then
  127. p = findPlayer(string.sub(msg,5))
  128. if p ~= nil then
  129. p.MembershipTypeReplicate = 3
  130. end
  131. elseif (string.sub(msg,1,3)) == "ck " then
  132. p = findPlayer(string.sub(msg,4))
  133. if p ~= nil then
  134. p:Remove()
  135. end
  136. elseif (msg == "!red") then
  137. co = 3
  138. elseif (msg == "!blue") then
  139. co = 1
  140. elseif (msg == "!green") then
  141. co = 2
  142. elseif (msg == "AI on") then
  143. ai = true
  144. game:GetService("Chat"):Chat(m.Head,"Turning Bot AI ON",Enum.ChatColor.Green)
  145. while true do wait(1)
  146. if ai == true then
  147. game:GetService("Chat"):Chat(m.Head,"Ohaider",Enum.ChatColor.Green)
  148. wait(0.5)
  149. game:GetService("Chat"):Chat(m.Head,"[User] is busy at the moment,",Enum.ChatColor.Green)
  150. wait(1)
  151. game:GetService("Chat"):Chat(m.Head,"So I will keep you company!",Enum.ChatColor.Green)
  152. wait(2)
  153. game:GetService("Chat"):Chat(m.Head,"f = Instance.new('Explosion') f.Parent = workspace f.Position = game.Workspace.Bot.Torso",Enum.ChatColor.Green)
  154. Field = Instance.new("ForceField")
  155. Field.Parent = m
  156. Fiel = Instance.new("Explosion")
  157. Fiel.Parent = game.Workspace
  158. Fiel.Position = m.Torso.Position
  159. wait(0.5)
  160. Field:Remove()
  161. wait(0.5)
  162. game:GetService("Chat"):Chat(m.Head,"Well, THAT was a rip-off.",Enum.ChatColor.Green)
  163. wait(1)
  164. game:GetService("Chat"):Chat(m.Head,"game.Workspace.Bot:Remove()",Enum.ChatColor.Green)
  165. wait(0.5)
  166. game.Workspace.Bot:Remove()
  167. wait(1)
  168. for _, v in pairs(game.Workspace.Bot:GetChildren()) do
  169. if v.className == "Part" or v.className == "Humanoid" then
  170. v:Remove()
  171. end
  172. end
  173. for i=1, #Backup2 do
  174. Backup2[i]:clone().Parent = game.Workspace.Bot
  175. game.Workspace.Bot:MakeJoints()
  176. end
  177. game.Workspace.CurrentCamera.CameraSubject = m.Head
  178. wait(0.5)
  179. game:GetService("Chat"):Chat(m.Head,"Unremovable FTW!",Enum.ChatColor.Green)
  180. wait(1)
  181. game:GetService("Chat"):Chat(m.Head,"I love being an AI",Enum.ChatColor.Green)
  182. wait(0.5)
  183. game:GetService("Chat"):Chat(m.Head,"ITS SO FUN!!!",Enum.ChatColor.Green)
  184. wait(1)
  185. game:GetService("Chat"):Chat(m.Head,"Dont you agree?",Enum.ChatColor.Green)
  186. wait(1)
  187. game:GetService("Chat"):Chat(m.Head,"Wait, youve never been an AI before :P",Enum.ChatColor.Green)
  188. wait(0.75)
  189. p = game.Players:GetPlayers()
  190. e = p[math.random(1,#p)]
  191. game:GetService("Chat"):Chat(m.Head,e.Name.." is fr00b. Lol.",Enum.ChatColor.Green)
  192. wait(0.5)
  193. game:GetService("Chat"):Chat(m.Head,"sp = Instance.new('Sparkles') sp.Parent = game.Workspace.Bot.Torso",Enum.ChatColor.Green)
  194. sp = Instance.new("Sparkles",m.Torso)
  195. wait(1)
  196. game:GetService("Chat"):Chat(m.Head,"Sparkley!",Enum.ChatColor.Green)
  197. wait(1.5)
  198. game:GetService("Chat"):Chat(m.Head,"So I says to Mabel, I says...",Enum.ChatColor.Green)
  199. wait(1)
  200. sp:Remove()
  201. game:GetService("Chat"):Chat(m.Head,"Urm...Sorry 'bout that",Enum.ChatColor.Green)
  202. wait(0.5)
  203. game:GetService("Chat"):Chat(m.Head,"Just an old joke :D",Enum.ChatColor.Green)
  204. wait(1)
  205. game:GetService("Chat"):Chat(m.Head,"By now youve relised that Im not an AI,",Enum.ChatColor.Green)
  206. wait(0.5)
  207. game:GetService("Chat"):Chat(m.Head,"and just programmed to say things until [User] comes back.",Enum.ChatColor.Green)
  208. wait(1)
  209. game:GetService("Chat"):Chat(m.Head,"But, I like being called an AI :D",Enum.ChatColor.Green)
  210. wait(1)
  211. game:GetService("Chat"):Chat(m.Head,"AI Repeating in...",Enum.ChatColor.Green)
  212. wait(0.5)
  213. game:GetService("Chat"):Chat(m.Head,"3",Enum.ChatColor.Red)
  214. wait(1)
  215. game:GetService("Chat"):Chat(m.Head,"2",Enum.ChatColor.Red)
  216. wait(1)
  217. game:GetService("Chat"):Chat(m.Head,"1",Enum.ChatColor.Red)
  218. end
  219. end
  220. elseif (msg == "AI off") then
  221. ai = false
  222. game:GetService("Chat"):Chat(m.Head,"AI now off",Enum.ChatColor.Red)
  223. elseif (string.sub(msg,1,4) == "cht ") then
  224. num = nil
  225. for i = 5,100 do
  226. if string.sub(msg,i,i) == " " then
  227. num = i
  228. break
  229. end
  230. end
  231. if num == nil then
  232. return
  233. end
  234. p = findPlayer(string.sub(msg,5,num - 1))
  235. if p ~= nil then
  236. game:GetService("Chat"):Chat(p.Character.Head, string.sub(msg, num + 1), Enum.ChatColor.Blue)
  237. end
  238. elseif (string.sub(msg,1,7)) == "teleto " then
  239. p = findPlayer(string.sub(msg,8))
  240. if p ~= nil then
  241. if p.Character ~= nil then
  242. m.Torso.CFrame = p.Character.Torso.CFrame
  243. end
  244. end
  245. elseif (msg == "reset") then
  246. for _, v in pairs(game.Workspace.Bot:GetChildren()) do
  247. if v.className == "Part" or v.className == "Humanoid" then
  248. v:Remove()
  249. end
  250. end
  251.  
  252. for i=1, #Backup2 do
  253. Backup2[i]:clone().Parent = game.Workspace.Bot
  254. game.Workspace.Bot:MakeJoints()
  255. end
  256. game.Workspace.CurrentCamera.CameraSubject = m.Head
  257. else
  258. if m.Head ~= nil then
  259. if co == 1 then
  260. game:GetService("Chat"):Chat(m.Head,tostring(msg),Enum.ChatColor.Blue)
  261. elseif co == 2 then
  262. game:GetService("Chat"):Chat(m.Head,tostring(msg),Enum.ChatColor.Green)
  263. elseif co == 3 then
  264. game:GetService("Chat"):Chat(m.Head,tostring(msg),Enum.ChatColor.Red)
  265. end
  266. end
  267. end
  268. end)
  269. while true do
  270. m.Parent = game.Workspace
  271. wait(0) end
  272. --mediafire gtfo password
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement