oatmeal2009

bot script

Jun 12th, 2020
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.29 KB | None | 0 0
  1. local settings = {
  2. admin = "oatmeal2009_copy2",
  3. prefix = "-",
  4. announce_on_execute = true
  5. }
  6. --[[
  7. Thanks for using Tostrong Fe Bot.
  8. Made by tostring on v3rm
  9. Commands:
  10. print = prints what you want in console on the bot. Example: [PREFIX IN SETTINGS]print hello world
  11. bringbot = brings the bot to the admin. Example: [PREFIX IN SETTINGS]bringbot
  12. killbot = kills the bot so it can respawn, do not use if fe godded. Example: [PREFIX IN SETTINGS]killbot
  13. wsbot = allows you to select the amount of walkspeed for the bot. Example: [PREFIX IN SETTINGS]wsbot 100
  14. jpbot = allows you to select the amount of JumpPower for the bot. Example: [PREFIX IN SETTINGS]jpbot 500
  15. jumpbot = makes the bot jump. Example: [PREFIX IN SETTINGS]jumpbot
  16. sitbot = makes the bot sit, use jumpbot to make it jump. Example: [PREFIX IN SETTINGS]sitbot
  17. fegod = Makes the bot godded. Example: [PREFIX IN SETTINGS]fegod
  18. come = Alterinative to bringbot
  19. freeze = Freezes the bot in place, use [PREFIX IN SETTINGS]unfreeze to unfreeze. Example: [PREFIX IN SETTINGS]freeze
  20. age = finds age of selected player. Example: [PREFIX IN SETTINGS]age GordonRamsay
  21. findbot = Makes the bot chat their current position. Example: [PREFIX IN SETTINGS]findbot
  22. find = Makes the bot chat the targets current position. Example: [PREFIX IN SETTINGS]find GordonRamsay
  23. say = says a message that you set it to say. Example: [PREFIX IN SETTINGS]say hello world
  24. players = will make the bot chat all the existing players names. Example: [PREFIX IN SETTINGS]players
  25. shutdown = makes the bot leave the game and shutdown. Example: [PREFIX IN SETTINGS]shutdown
  26. status = Makes the bot chat its health and position. Example: [PREFIX IN SETTINGS]status
  27. plrlog = Chats the name of players that join the game, use [PREFIX IN SETTINGS]endplrlog to stop it. Example: [PREFIX IN SETTINGS]plrlog
  28. joke = Chats a random joke. Example: [PREFIX IN SETTINGS]joke
  29. tp = makes the bot tp to the target. Example: [PREFIX IN SETTINGS]tp GordonRamsay
  30. crashbot = Makes the bot crash and unresponsive. Example: [PREFIX IN SETTINGS]crashbot
  31. random = chats a random number. Example: [PREFIX IN SETTINGS]random
  32. wander = makes the bot wander around in a random direction. Example: [PREFIX IN SETTINGS]wander
  33. intofplayers = Makes the bot chat the number of players in game. Example: [PREFIX IN SETTINGS]intofplayers
  34. insane = makes the bot play the insane animation. Example: [PREFIX IN SETTINGS]insane
  35. dab = makes the bot play the dab animation. Example: [PREFIX IN SETTINGS]dab
  36. attach = makes the bot loop tp to the selected target. Example: [PREFIX IN SETTINGS]attach GordonRamsay
  37. hover = makes the bot loop tp above the selected target. Example: [PREFIX IN SETTINGS]hover GordonRamsay
  38. insult = makes the bot chat a random insult. Example: [PREFIX IN SETTINGS]insult
  39. rstring = makes the bot chat random characters. Example: [PREFIX IN SETTINGS]rstring
  40. fps = makes the bot chat its current fps. Example: [PREFIX IN SETTINGS]fps
  41. kill = makes the bot kill the selected target, you must have a tool though. Example: [PREFIX IN SETTINGS]kill GordonRamsay
  42. nolimbs = gets rid of the bots limbs. Example: [PREFIX IN SETTINGS]nolimbs
  43. --]]
  44. local plrs = game:GetService("Players")
  45. local plr = plrs.LocalPlayer
  46. local admin = plrs[settings.admin]
  47. local plrlog = false
  48. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  49. local prefix = settings.prefix
  50. local out
  51. local jokes = {
  52. "What type of cloud is so lazy, because it will never get up? Fog!",
  53. "Why was the belt sent to jail? For holding up a pair of pants!"
  54. }
  55. local insults = {
  56. "Go to bed.",
  57. "You need a shower.",
  58. "I don't use grammar just to work at frappe like you.",
  59. "oder alert.",
  60. "What a poor free robux outfit EW!",
  61. "Go away noob.",
  62. "No.",
  63. "Never in your lifetime.",
  64. "You look like you just turned into a zombie and a ugly monster.",
  65. "Rich items don't grant you actual fame.",
  66. "You play roblox to od. Not for the fun or for the scripting or exploiting.",
  67. "Pathetic.",
  68. "It mustve took you two hours to make a account on this site huh? Not to mention your email.",
  69. "... The reason I am so silent is because you look so ugly.",
  70. "Do you even go to school?",
  71. "You need to go to insulting school if you need a bot to make one for you. :)",
  72. "Will you stop using me just for insults?",
  73. "Bruh, I can't even say anything because of how much of a abomination you are.",
  74. "You probably can't even pick up girls because of how much you torture them.",
  75. "your mum."
  76. }
  77.  
  78. if settings.announce_on_execute == true then
  79. Event:FireServer("Bot has been initialized, Prefix: " .. prefix, "All")
  80. end
  81.  
  82. function genrandom()
  83. out = string.char(math.random(97,123)) .. string.char(math.random(97,123)) .. string.char(math.random(97,123)) .. string.char(math.random(97,123)) .. string.char(math.random(97,123)) .. string.char(math.random(97,123))
  84. end
  85.  
  86. admin.Chatted:Connect(function(cht)
  87. if cht:match(prefix .. "print") then
  88. print(cht:sub(8))
  89. elseif cht:match(prefix .. "bring bot") then
  90. plr.Character.HumanoidRootPart.CFrame = admin.Character.Head.CFrame
  91. elseif cht:match(prefix .. "kill bot") then
  92. plr.Character.Humanoid.Health = 0
  93. elseif cht:match(prefix .. "wsbot") then
  94. plr.Character.Humanoid.WalkSpeed = cht:sub(8)
  95. elseif cht:match(prefix .. "jpbot") then
  96. plr.Character.Humanoid.JumpPower = cht:sub(8)
  97. elseif cht:match(prefix .. "jump bot") then
  98. plr.Character.Humanoid.Jump = true
  99. elseif cht:match(prefix .. "sit bot") then
  100. plr.Character.Humanoid.Sit = true
  101. elseif cht:match(prefix .. "fegod") then
  102. plr.Character.Humanoid:Destroy()
  103. wait()
  104. Instance.new("Humanoid",plr.Character)
  105. elseif cht:match(prefix .. "come") then
  106. plr.Character.Humanoid:MoveTo(admin.Character.HumanoidRootPart.Position)
  107. elseif cht:match(prefix .. "freeze") then
  108. plr.Character.HumanoidRootPart.Anchored = true
  109. elseif cht:match(prefix .. "unfreeze") then
  110. plr.Character.HumanoidRootPart.Anchored = false
  111. elseif cht:match(prefix .. "age") then
  112. local age = plrs[cht:sub(6)].AccountAge
  113. Event:FireServer(tostring(age), "All")
  114. elseif cht:match(prefix .. "findbot") then
  115. local pos = plr.Character.HumanoidRootPart.Position
  116. Event:FireServer(tostring(pos), "All")
  117. elseif cht:match(prefix .. "find") then
  118. local target = plrs[cht:sub(7)]
  119. local pos = target.Character.HumanoidRootPart.Position
  120. Event:FireServer(tostring(pos), "All")
  121. elseif cht:match(prefix .. "say") then
  122. Event:FireServer(tostring(cht:sub(6)), "All")
  123. elseif cht:match(prefix .. "players") then
  124. for _,v in next, plrs:GetPlayers() do
  125. Event:FireServer(tostring(v.Name), "All")
  126. wait(1)
  127. end
  128. elseif cht:match(prefix .. "shutdown") then
  129. Event:FireServer("Leaving the game now, goodbye!", "All")
  130. wait()
  131. game:Shutdown()
  132. elseif cht:match(prefix .. "status") then
  133. local health = plr.Character.Humanoid.Health
  134. local pos = plr.Character.HumanoidRootPart.Position
  135. Event:FireServer("Health: " .. health, "All")
  136. Event:FireServer("Position:","All")
  137. Event:FireServer(tostring(pos),"All")
  138. elseif cht:match(prefix .. "plrlog") then
  139. plrlog = true
  140. elseif cht:match(prefix .. "endplrlog") then
  141. plrlog = false
  142. elseif cht:match(prefix .. "joke") then
  143. Event:FireServer(jokes[math.random(1,4)],"All")
  144. elseif cht:match(prefix .. "tp") then
  145. local target = plrs[cht:sub(5)]
  146. plr.Character.HumanoidRootPart.CFrame = target.Character.HumanoidRootPart.CFrame
  147. elseif cht:match(prefix .. "crash bot") then
  148. while true do end
  149. elseif cht:match(prefix .. "random") then
  150. Event:FireServer(tostring(math.random()), "All")
  151. elseif cht:match(prefix .. "wander") then
  152. local chance = math.random(1,4)
  153. if chance == 1 then
  154. local pos = Vector3.new(plr.Character.HumanoidRootPart.Position.X + math.random(1,50), plr.Character.HumanoidRootPart.Position.Y, plr.Character.HumanoidRootPart.Position.Z - math.random(1,50))
  155. plr.Character.Humanoid:MoveTo(pos)
  156. elseif chance == 2 then
  157. local pos = Vector3.new(plr.Character.HumanoidRootPart.Position.X - math.random(1,50), plr.Character.HumanoidRootPart.Position.Y, plr.Character.HumanoidRootPart.Position.Z + math.random(1,50))
  158. plr.Character.Humanoid:MoveTo(pos)
  159. elseif chance == 3 then
  160. local pos = Vector3.new(plr.Character.HumanoidRootPart.Position.X - math.random(1,50), plr.Character.HumanoidRootPart.Position.Y, plr.Character.HumanoidRootPart.Position.Z - math.random(1,50))
  161. plr.Character.Humanoid:MoveTo(pos)
  162. elseif chance == 4 then
  163. local pos = Vector3.new(plr.Character.HumanoidRootPart.Position.X + math.random(1,50), plr.Character.HumanoidRootPart.Position.Y, plr.Character.HumanoidRootPart.Position.Z + math.random(1,50))
  164. plr.Character.Humanoid:MoveTo(pos)
  165. end
  166. elseif cht:match(prefix .. "intofplayers") then
  167. local amount = 0
  168. for _,v in next, plrs:GetPlayers() do
  169. amount = amount + 1
  170. end
  171. Event:FireServer(tostring("Number of players: " .. amount), "All")
  172. amount = 0
  173. elseif cht:match(prefix .. "insane") then
  174. local AnimationId = "33796059"
  175. local Anim = Instance.new("Animation")
  176. Anim.AnimationId = "rbxassetid://"..AnimationId
  177. local k = plr.Character.Humanoid:LoadAnimation(Anim)
  178. k:Play()
  179. k:AdjustSpeed(90)
  180. elseif cht:match(prefix .. "dab") then
  181. local AnimationId = "248263260"
  182. local Anim = Instance.new("Animation")
  183. Anim.AnimationId = "rbxassetid://"..AnimationId
  184. local k = plr.Character.Humanoid:LoadAnimation(Anim)
  185. k:Play()
  186. k:AdjustSpeed(1)
  187. elseif cht:match(prefix .. "attach") then
  188. local target = plrs[cht:sub(9)]
  189. while wait() do
  190. plr.Character.HumanoidRootPart.CFrame = target.Character.HumanoidRootPart.CFrame
  191. if plr.Character.Humanoid.Health == 0 or not plr.Character:FindFirstChild("HumanoidRootPart") or not target.Character:FindFirstChild("HumanoidRootPart") then
  192. break
  193. end
  194. end
  195. elseif cht:match(prefix .. "hover") then
  196. local target = plrs[cht:sub(8)]
  197. while wait() do
  198. if plr.Character.Humanoid.Health == 0 or not plr.Character:FindFirstChild("HumanoidRootPart") or not target.Character:FindFirstChild("HumanoidRootPart") then
  199. break
  200. end
  201. plr.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(target.Character.HumanoidRootPart.Position.X, target.Character.HumanoidRootPart.Position.Y + 12, target.Character.HumanoidRootPart.Position.Z))
  202. end
  203. elseif cht:match(prefix .. "insult") then
  204. Event:FireServer(insults[math.random(1,20)], "All")
  205. elseif cht:match(prefix .. "rstring") then
  206. genrandom()
  207. Event:FireServer(tostring(out), "All")
  208. elseif cht:match(prefix .. "fps") then
  209. local FPS = workspace:GetRealPhysicsFPS()
  210. Event:FireServer("Bots current FPS: " .. math.floor(FPS),"All")
  211. elseif cht:match(prefix .. "kill") then
  212. -- illremember's cool fe kill script, took this from IY since I was too lazy to make my own so thanks for it.
  213. local target = plrs[cht:sub(7)]
  214. game:GetService("Players").LocalPlayer.Character.Humanoid.Name = 1
  215. local l = game:GetService("Players").LocalPlayer.Character["1"]:Clone()
  216. l.Parent = game:GetService("Players").LocalPlayer.Character
  217. l.Name = "Humanoid"
  218. wait(0.1)
  219. game:GetService("Players").LocalPlayer.Character["1"]:Destroy()
  220. game.Workspace.CurrentCamera.CameraSubject = game:GetService("Players").LocalPlayer.Character
  221. game:GetService("Players").LocalPlayer.Character.Animate.Disabled = true
  222. wait(0.1)
  223. game:GetService("Players").LocalPlayer.Character.Animate.Disabled = false
  224. game:GetService("Players").LocalPlayer.Character.Humanoid.DisplayDistanceType = "None"
  225. for i,v in pairs(game:GetService'Players'.LocalPlayer.Backpack:GetChildren())do
  226. game:GetService("Players").LocalPlayer.Character.Humanoid:EquipTool(v)
  227. v.CanBeDropped = true
  228. end
  229. wait(0.1)
  230. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = target.Character.HumanoidRootPart.CFrame
  231. wait(0.1)
  232. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = target.Character.HumanoidRootPart.CFrame
  233. wait(0.2)
  234. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(-10000,-100, -10000))
  235. elseif cht:match(prefix .. "nolimbs") then
  236. plr.Character["Left Leg"]:Destroy()
  237. plr.Character["Right Leg"]:Destroy()
  238. plr.Character["Left Arm"]:Destroy()
  239. plr.Character["Right Arm"]:Destroy()
  240. end
  241. end)
  242.  
  243. plrs.PlayerAdded:Connect(function(noob)
  244. if plrlog == true then
  245. Event:FireServer(tostring(noob.Name) .. " has joined the game.", "All")
  246. end
  247. end)
Add Comment
Please, Sign In to add comment