Advertisement
oatmeal2009

op script

Jun 12th, 2020
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.07 KB | None | 0 0
  1. local settings = {
  2. admin = "oatmeal2009_copyf",
  3. prefix = "-",
  4. announce_on_execute = true
  5. }
  6. --[[
  7. Thanks for using Tostrong Fe Bot.
  8. Made by tostring on v3rm
  9. Modded by Babyhamsta on v3rm
  10.  
  11. Babyhamsta Changes:
  12. Added multi command for ws, jp, jump, and sit.
  13. Added short names
  14. Added string.lower so you can type with caps and lowers
  15. Changed all commands to work with short names
  16.  
  17. Commands:
  18. print = prints what you want in console on the bot. Example: [PREFIX IN SETTINGS]print hello world
  19. bringbot/bring = brings the bot to the admin. Example: [PREFIX IN SETTINGS]bring
  20. killbot = kills the bot so it can respawn, do not use if fe godded. Example: [PREFIX IN SETTINGS]killbot
  21. wsbot/ws = allows you to select the amount of walkspeed for the bot. Example: [PREFIX IN SETTINGS]ws 100
  22. jpbot/jp = allows you to select the amount of JumpPower for the bot. Example: [PREFIX IN SETTINGS]jp 100
  23. jumpbot/jump = makes the bot jump. Example: [PREFIX IN SETTINGS]jump
  24. sitbot/sit = makes the bot sit, use jumpbot to make it jump. Example: [PREFIX IN SETTINGS]sit
  25. fegod = Makes the bot godded. Example: [PREFIX IN SETTINGS]fegod
  26. come = Alterinative to bringbot
  27. freeze = Freezes the bot in place, use [PREFIX IN SETTINGS]unfreeze to unfreeze. Example: [PREFIX IN SETTINGS]freeze
  28. age = finds age of selected player. Example: [PREFIX IN SETTINGS]age GordonRamsay
  29. findbot = Makes the bot chat their current position. Example: [PREFIX IN SETTINGS]findbot
  30. find = Makes the bot chat the targets current position. Example: [PREFIX IN SETTINGS]find GordonRamsay
  31. say = says a message that you set it to say. Example: [PREFIX IN SETTINGS]say hello world
  32. players = will make the bot chat all the existing players names. Example: [PREFIX IN SETTINGS]players
  33. shutdown = makes the bot leave the game and shutdown. Example: [PREFIX IN SETTINGS]shutdown
  34. status = Makes the bot chat its health and position. Example: [PREFIX IN SETTINGS]status
  35. plrlog = Chats the name of players that join the game, use [PREFIX IN SETTINGS]endplrlog to stop it. Example: [PREFIX IN SETTINGS]plrlog
  36. joke = Chats a random joke. Example: [PREFIX IN SETTINGS]joke
  37. tp = makes the bot tp to the target. Example: [PREFIX IN SETTINGS]tp GordonRamsay
  38. crashbot = Makes the bot crash and unresponsive. Example: [PREFIX IN SETTINGS]crashbot
  39. random = chats a random number. Example: [PREFIX IN SETTINGS]random
  40. wander = makes the bot wander around in a random direction. Example: [PREFIX IN SETTINGS]wander
  41. intofplayers = Makes the bot chat the number of players in game. Example: [PREFIX IN SETTINGS]intofplayers
  42. insane = makes the bot play the insane animation. Example: [PREFIX IN SETTINGS]insane
  43. dab = makes the bot play the dab animation. Example: [PREFIX IN SETTINGS]dab
  44. follow = makes the bot loop tp to the selected target. Example: [PREFIX IN SETTINGS]follow GordonRamsay
  45. hover = makes the bot loop tp above the selected target. Example: [PREFIX IN SETTINGS]hover GordonRamsay
  46. insult = makes the bot chat a random insult. Example: [PREFIX IN SETTINGS]insult
  47. rstring = makes the bot chat random characters. Example: [PREFIX IN SETTINGS]rstring
  48. fps = makes the bot chat its current fps. Example: [PREFIX IN SETTINGS]fps
  49. kill = makes the bot kill the selected target, you must have a tool though. Example: [PREFIX IN SETTINGS]kill GordonRamsay
  50. nolimbs = gets rid of the bots limbs. Example: [PREFIX IN SETTINGS]nolimbs
  51. --]]
  52. local plrs = game:GetService("Players")
  53. local plr = plrs.LocalPlayer
  54. local admin = plrs:WaitForChild(settings.admin, math.huge)
  55. local plrlog = false
  56. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  57. local prefix = settings.prefix
  58. local out
  59. local jokes = {
  60. "What type of cloud is so lazy, because it will never get up? Fog!",
  61. "Why was the belt sent to jail? For holding up a pair of pants!",
  62. "What do snowmen eat for breakfast? Snowflakes."
  63. }
  64. local insults = {
  65. "ŴŤŦ are you.why did we have you on the planet.",
  66. "i am really making my eyes vomit for how much i'm looking at you",
  67. "go com m it get life",
  68. "in this case i would pretend to say you look nice but no i would be lying.well i want to speak the truth yes?",
  69. "( f u c k ` o f f)",
  70. "(i should get paid for standing in the same earth as you.)",
  71. }
  72.  
  73. if settings.announce_on_execute == true then
  74. Event:FireServer("Bot has been initialized, Prefix: " .. prefix, "All")
  75. end
  76.  
  77. function genrandom()
  78. 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))
  79. end
  80.  
  81. function getname(target) --Gets player from shortend username (Babyhamsta)
  82. local children = game.Players:GetChildren()
  83. for i = 1, #children do
  84. local child = string.lower(tostring(children[i].Name))
  85. local look = tostring(target)
  86. if string.find(child, look) then
  87. found = children[i].Name
  88. end
  89. end
  90. return found;
  91. end
  92.  
  93. admin.Chatted:Connect(function(chtt)
  94. local cht = string.lower(chtt) --(Babyhamsta)
  95. if cht:match(prefix .. "print") then
  96. print(cht:sub(8))
  97. elseif cht:match(prefix .. "bring bot") or cht:match(prefix .. "bring") then
  98. plr.Character.HumanoidRootPart.CFrame = admin.Character.Head.CFrame
  99. elseif cht:match(prefix .. "kill bot") then
  100. plr.Character.Humanoid.Health = 0
  101. elseif cht:match(prefix .. "wsbot") or cht:match(prefix .. "ws") then
  102. plr.Character.Humanoid.WalkSpeed = cht:sub(8)
  103. elseif cht:match(prefix .. "jpbot") or cht:match(prefix .. "jp") then
  104. plr.Character.Humanoid.JumpPower = cht:sub(8)
  105. elseif cht:match(prefix .. "jump bot") or cht:match(prefix .. "jump") then
  106. plr.Character.Humanoid.Jump = true
  107. elseif cht:match(prefix .. "sit bot") or cht:match(prefix .. "sit") then
  108. plr.Character.Humanoid.Sit = true
  109. elseif cht:match(prefix .. "fegod") then
  110. plr.Character.Humanoid:Destroy()
  111. wait()
  112. Instance.new("Humanoid",plr.Character)
  113. elseif cht:match(prefix .. "come") then
  114. plr.Character.Humanoid:MoveTo(admin.Character.HumanoidRootPart.Position)
  115. elseif cht:match(prefix .. "freeze") then
  116. plr.Character.HumanoidRootPart.Anchored = true
  117. elseif cht:match(prefix .. "unfreeze") then
  118. plr.Character.HumanoidRootPart.Anchored = false
  119. elseif cht:match(prefix .. "age") then
  120. local age = plrs[cht:sub(6)].AccountAge
  121. Event:FireServer(tostring(age), "All")
  122. elseif cht:match(prefix .. "findbot") then
  123. local pos = plr.Character.HumanoidRootPart.Position
  124. Event:FireServer(tostring(pos), "All")
  125. elseif cht:match(prefix .. "find") then
  126. local target = getname(cht:sub(7))
  127. local pos = plrs[target].Character.HumanoidRootPart.Position
  128. Event:FireServer(tostring(pos), "All")
  129. elseif cht:match(prefix .. "say") then
  130. Event:FireServer(tostring(cht:sub(6)), "All")
  131. elseif cht:match(prefix .. "players") then
  132. for _,v in next, plrs:GetPlayers() do
  133. Event:FireServer(tostring(v.Name), "All")
  134. wait(1)
  135. end
  136. elseif cht:match(prefix .. "shutdown") then
  137. Event:FireServer("shutting down...", "All")
  138. wait(5)
  139. game:Shutdown()
  140. elseif cht:match(prefix .. "status") then
  141. local health = plr.Character.Humanoid.Health
  142. local pos = plr.Character.HumanoidRootPart.Position
  143. Event:FireServer("Health: " .. health, "All")
  144. Event:FireServer("Position:","All")
  145. Event:FireServer(tostring(pos),"All")
  146. elseif cht:match(prefix .. "plrlog") then
  147. plrlog = true
  148. elseif cht:match(prefix .. "endplrlog") then
  149. plrlog = false
  150. elseif cht:match(prefix .. "joke") then
  151. Event:FireServer(jokes[math.random(1,4)],"All")
  152. elseif cht:match(prefix .. "tp") then
  153. local target = getname(cht:sub(5))
  154. plr.Character.HumanoidRootPart.CFrame = plrs[target].Character.HumanoidRootPart.CFrame
  155. elseif cht:match(prefix .. "crashbot") or cht:match(prefix .. "crash") then
  156. while true do end
  157. elseif cht:match(prefix .. "random") then
  158. Event:FireServer(tostring(math.random()), "All")
  159. elseif cht:match(prefix .. "wander") then
  160. local chance = math.random(1,4)
  161. if chance == 1 then
  162. 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))
  163. plr.Character.Humanoid:MoveTo(pos)
  164. elseif chance == 2 then
  165. 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))
  166. plr.Character.Humanoid:MoveTo(pos)
  167. elseif chance == 3 then
  168. 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))
  169. plr.Character.Humanoid:MoveTo(pos)
  170. elseif chance == 4 then
  171. 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))
  172. plr.Character.Humanoid:MoveTo(pos)
  173. end
  174. elseif cht:match(prefix .. "intofplayers") or cht:match(prefix .. "players") then
  175. local amount = 0
  176. for _,v in next, plrs:GetPlayers() do
  177. amount = amount + 1
  178. end
  179. Event:FireServer(tostring("Number of players: " .. amount), "All")
  180. amount = 0
  181. elseif cht:match(prefix .. "insane") then
  182. local AnimationId = "33796059"
  183. local Anim = Instance.new("Animation")
  184. Anim.AnimationId = "rbxassetid://"..AnimationId
  185. local k = plr.Character.Humanoid:LoadAnimation(Anim)
  186. k:Play()
  187. k:AdjustSpeed(90)
  188. elseif cht:match(prefix .. "dab") then
  189. local AnimationId = "248263260"
  190. local Anim = Instance.new("Animation")
  191. Anim.AnimationId = "rbxassetid://"..AnimationId
  192. local k = plr.Character.Humanoid:LoadAnimation(Anim)
  193. k:Play()
  194. k:AdjustSpeed(1)
  195. elseif cht:match(prefix .. "follow") then
  196. local target = getname(cht:sub(9))
  197. while wait() do
  198. plr.Character.HumanoidRootPart.CFrame = plrs[target].Character.HumanoidRootPart.CFrame
  199. if plr.Character.Humanoid.Health == 0 or not plr.Character:FindFirstChild("HumanoidRootPart") or not plrs[target].Character:FindFirstChild("HumanoidRootPart") then
  200. break
  201. end
  202. end
  203. elseif cht:match(prefix .. "hover") then
  204. local target = getname(cht:sub(8))
  205. while wait() do
  206. if plr.Character.Humanoid.Health == 0 or not plr.Character:FindFirstChild("HumanoidRootPart") or not plrs[target].Character:FindFirstChild("HumanoidRootPart") then
  207. break
  208. end
  209. plr.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(plrs[target].Character.HumanoidRootPart.Position.X, plrs[target].Character.HumanoidRootPart.Position.Y + 12, plrs[target].Character.HumanoidRootPart.Position.Z))
  210. end
  211. elseif cht:match(prefix .. "insult") then
  212. Event:FireServer(insults[math.random(1,20)], "All")
  213. elseif cht:match(prefix .. "rstring") then
  214. genrandom()
  215. Event:FireServer(tostring(out), "All")
  216. elseif cht:match(prefix .. "fps") then
  217. local FPS = workspace:GetRealPhysicsFPS()
  218. Event:FireServer("Bots current FPS: " .. math.floor(FPS),"All")
  219. elseif cht:match(prefix .. "kill") then
  220. -- illremember's cool fe kill script, took this from IY since I was too lazy to make my own so thanks for it.
  221. local target = getname(cht:sub(7))
  222. game:GetService("Players").LocalPlayer.Character.Humanoid.Name = 1
  223. local l = game:GetService("Players").LocalPlayer.Character["1"]:Clone()
  224. l.Parent = game:GetService("Players").LocalPlayer.Character
  225. l.Name = "Humanoid"
  226. wait(0.1)
  227. game:GetService("Players").LocalPlayer.Character["1"]:Destroy()
  228. game.Workspace.CurrentCamera.CameraSubject = game:GetService("Players").LocalPlayer.Character
  229. game:GetService("Players").LocalPlayer.Character.Animate.Disabled = true
  230. wait(0.1)
  231. game:GetService("Players").LocalPlayer.Character.Animate.Disabled = false
  232. game:GetService("Players").LocalPlayer.Character.Humanoid.DisplayDistanceType = "None"
  233. for i,v in pairs(game:GetService'Players'.LocalPlayer.Backpack:GetChildren())do
  234. game:GetService("Players").LocalPlayer.Character.Humanoid:EquipTool(v)
  235. v.CanBeDropped = true
  236. end
  237. wait(0.1)
  238. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = plrs[target].Character.HumanoidRootPart.CFrame
  239. wait(0.1)
  240. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = plrs[target].Character.HumanoidRootPart.CFrame
  241. wait(0.2)
  242. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(-10000,-100, -10000))
  243. elseif cht:match(prefix .. "nolimbs") then
  244. plr.Character["Left Leg"]:Destroy()
  245. plr.Character["Right Leg"]:Destroy()
  246. plr.Character["Left Arm"]:Destroy()
  247. plr.Character["Right Arm"]:Destroy()
  248. end
  249. end)
  250.  
  251. plrs.PlayerAdded:Connect(function(noob)
  252. if plrlog == true then
  253. Event:FireServer(tostring(noob.Name) .. " has joined the game.", "All")
  254. end
  255. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement