Advertisement
AnthonyJohn14

flood escape 2 script

Nov 7th, 2021 (edited)
3,589
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.52 KB | None | 0 0
  1. --Change the 'WaitTime'(time it takes to load map) to 5-9 when using AutoFarm in public servers, and around 3 in private. Then click 'Reload GUI' to save changes
  2.  
  3. --Use 'Reload GUI' after you die, as some functions will not work after you respawn
  4.  
  5. --Enable 'NoClip' if you are getting killed when Teleporting to the exit, or if you just wanna go thru walls
  6.  
  7. --Click 'ClickTP (r)' to enable click TP, hover your mouse over where you want to TP, and press r
  8.  
  9. --All other buttons are pretty self-explanatory
  10.  
  11. function GUI(seconds)
  12. local Player = game.Players.LocalPlayer.Character
  13. local on = false
  14. local clip = true
  15.  
  16. local FloodGUI = Instance.new("ScreenGui")
  17. local MainFrame = Instance.new("Frame")
  18. local Title = Instance.new("TextLabel")
  19. local Credits = Instance.new("TextLabel")
  20. local ClickTP = Instance.new("TextButton")
  21. local GetButtons = Instance.new("TextButton")
  22. local DestroyExit = Instance.new("TextButton")
  23. local TpSpawn = Instance.new("TextButton")
  24. local TpExit = Instance.new("TextButton")
  25. local X = Instance.new("TextButton")
  26. local AutoFarm = Instance.new("TextButton")
  27. local Reload = Instance.new("TextButton")
  28. local NoClip = Instance.new("TextButton")
  29. local Waittime = Instance.new("TextBox")
  30. FloodGUI.Parent = game.CoreGui
  31.  
  32. MainFrame.Parent = FloodGUI
  33. MainFrame.BackgroundColor3 = Color3.new(0, 0, 1)
  34. MainFrame.BackgroundTransparency = 0.3
  35. MainFrame.Position = UDim2.new(0.77, 0, 0.53, 0)
  36. MainFrame.Size = UDim2.new(0, 300, 0, 300)
  37. MainFrame.Active = true
  38. MainFrame.Draggable = true
  39.  
  40. Title.Parent = MainFrame
  41. Title.BackgroundTransparency = 1
  42. Title.Size = UDim2.new(0, 189, 0, 32)
  43. Title.Font = Enum.Font.SourceSansBold
  44. Title.FontSize = Enum.FontSize.Size36
  45. Title.Text = "FloodGui"
  46. Title.TextColor3 = Color3.new(1, 1, 1)
  47.  
  48. Credits.Parent = MainFrame
  49. Credits.BackgroundTransparency = 1
  50. Credits.Size = UDim2.new(0, 189, 0, 32)
  51. Credits.Font = Enum.Font.SourceSansBold
  52. Credits.FontSize = Enum.FontSize.Size24
  53. Credits.Text = "GUI created by Zmann"
  54. Credits.TextColor3 = Color3.new(0, 0, 0.03)
  55. Credits.Position = UDim2.new(0.20, 0, 0.88, 0)
  56.  
  57. ClickTP.Parent = MainFrame
  58. ClickTP.BackgroundColor3 = Color3.new(0, 0, 0.5)
  59. ClickTP.Position = UDim2.new(0.03, 0, 0.75, 0)
  60. ClickTP.Size = UDim2.new(0, 125, 0, 36)
  61. ClickTP.Font = Enum.Font.SourceSansBold
  62. ClickTP.FontSize = Enum.FontSize.Size24
  63. ClickTP.Text = "Click TP (r)"
  64. ClickTP.TextColor3 = Color3.new(1, 1, 1)
  65. ClickTP.MouseButton1Down:connect(function()
  66. plr = game.Players.LocalPlayer
  67. mouse = plr:GetMouse()
  68. mouse.KeyDown:connect(function(key)
  69. if key == "r" then
  70. if mouse.Target then
  71. plr.Character.HumanoidRootPart.CFrame = CFrame.new(mouse.Hit.x, mouse.Hit.y + 5, mouse.Hit.z)
  72. end
  73. end
  74. end)
  75. warn("[FloodGui] ClickTP Enabled!")
  76. end)
  77.  
  78. function buttons(waittime)
  79. local Map = game.Workspace.Multiplayer.Map
  80. local Btns = {}
  81. local Desc = {}
  82. for i, v in pairs(Map:GetDescendants())do
  83. Desc[v.Name.."Obj"] = v
  84. end
  85. for i=0,30 do
  86. if Desc["_Button".. tostring(i).. "Obj"] ~= nil then
  87. table.insert(Btns,Desc["_Button".. tostring(i).. "Obj"])
  88. end
  89. end
  90. for i, v in pairs(Btns)do
  91. local Hitbox = v.Hitbox
  92. Player.HumanoidRootPart.CFrame = Hitbox.CFrame
  93. wait(waittime)
  94. end
  95. end
  96.  
  97. GetButtons.Parent = MainFrame
  98. GetButtons.BackgroundColor3 = Color3.new(0, 0, 0.5)
  99. GetButtons.Position = UDim2.new(0.03, 0, 0.55, 0)
  100. GetButtons.Size = UDim2.new(0, 125, 0, 36)
  101. GetButtons.Font = Enum.Font.SourceSansBold
  102. GetButtons.FontSize = Enum.FontSize.Size24
  103. GetButtons.Text = "Get Buttons"
  104. GetButtons.TextColor3 = Color3.new(1, 1, 1)
  105. GetButtons.MouseButton1Down:connect(function()
  106. warn("[FloodGui] Pressing buttons...")
  107. buttons(0.3)
  108. warn("[FloodGui] Buttons Pressed!")
  109. end)
  110.  
  111. TpSpawn.Parent = MainFrame
  112. TpSpawn.BackgroundColor3 = Color3.new(0, 0, 0.5)
  113. TpSpawn.Position = UDim2.new(0.53, 0, 0.75, 0)
  114. TpSpawn.Size = UDim2.new(0, 125, 0, 36)
  115. TpSpawn.Font = Enum.Font.SourceSansBold
  116. TpSpawn.FontSize = Enum.FontSize.Size24
  117. TpSpawn.Text = "TP Spawn"
  118. TpSpawn.TextColor3 = Color3.new(1, 1, 1)
  119. TpSpawn.MouseButton1Down:connect(function()
  120. Player.HumanoidRootPart.CFrame = CFrame.new(-25, -145, 47)
  121. warn("[FloodGui] Teleported!")
  122. end)
  123.  
  124. DestroyExit.Parent = MainFrame
  125. DestroyExit.BackgroundColor3 = Color3.new(0, 0, 0.5)
  126. DestroyExit.Position = UDim2.new(0.53, 0, 0.55, 0)
  127. DestroyExit.Size = UDim2.new(0, 125, 0, 36)
  128. DestroyExit.Font = Enum.Font.SourceSansBold
  129. DestroyExit.FontSize = Enum.FontSize.Size24
  130. DestroyExit.Text = "Destroy Exit"
  131. DestroyExit.TextColor3 = Color3.new(1, 1, 1)
  132. DestroyExit.MouseButton1Down:connect(function()
  133. local Map = game.Workspace.Multiplayer.Map
  134. Map.ExitBlock:Destroy()
  135. warn("[FloodGui] Exit Destroyed!")
  136. end)
  137.  
  138. X.Parent = MainFrame
  139. X.BackgroundTransparency = 1
  140. X.Position = UDim2.new(.93, 0, 0, 0)
  141. X.Size = UDim2.new(0, 20, 0, 20)
  142. X.Font = Enum.Font.SourceSansBold
  143. X.FontSize = Enum.FontSize.Size24
  144. X.Text = "X"
  145. X.TextColor3 = Color3.new(1, 1, 1)
  146. X.MouseButton1Down:connect(function()
  147. on = false
  148. clip = true
  149. MainFrame:Remove()
  150. end)
  151.  
  152. function Tpexit(pos)
  153. local Player = game.Players.LocalPlayer.Character
  154. local Map = game.Workspace.Multiplayer.Map
  155. local ExitBlock = Map:FindFirstChild("ExitRegion")
  156. local posit
  157. if ExitBlock == nil then
  158. if pos == 1 then
  159. posit = CFrame.new(2080, 990, 2)
  160. elseif pos == 2 then
  161. posit = CFrame.new(4080, 990, 2)
  162. end
  163. else
  164. posit = ExitBlock.CFrame
  165. end
  166. local Ts = game:GetService("TweenService")
  167. local Ti = TweenInfo.new(
  168. 2,
  169. Enum.EasingStyle.Sine,
  170. Enum.EasingDirection.Out,
  171. 0,
  172. false,
  173. 0
  174. )
  175. local Tp = {
  176. CFrame = posit
  177. }
  178. local Tw = Ts:Create(Player.HumanoidRootPart,Ti,Tp)
  179. wait(0.1)
  180. Tw:Play()
  181. end
  182.  
  183. TpExit.Parent = MainFrame
  184. TpExit.BackgroundColor3 = Color3.new(0, 0, 0.5)
  185. TpExit.Position = UDim2.new(0.53, 0, 0.35, 0)
  186. TpExit.Size = UDim2.new(0, 125, 0, 36)
  187. TpExit.Font = Enum.Font.SourceSansBold
  188. TpExit.FontSize = Enum.FontSize.Size24
  189. TpExit.Text = "TP Exit"
  190. TpExit.TextColor3 = Color3.new(1, 1, 1)
  191. TpExit.MouseButton1Down:connect(function()
  192. warn("[FloodGui] Teleporting...")
  193. exit = game.Workspace.Multiplayer.Map:FindFirstChild("ExitRegion")
  194. spawn = game.Workspace.Multiplayer.Map:FindFirstChild("Spawn")
  195. if exit then
  196. Tpexit()
  197. else
  198. if spawn.Position.X < 3000 then
  199. Tpexit(1)
  200. else
  201. Tpexit(2)
  202. end
  203. end
  204. end)
  205.  
  206. AutoFarm.Parent = MainFrame
  207. AutoFarm.BackgroundColor3 = Color3.new(0, 0, 0.5)
  208. AutoFarm.Position = UDim2.new(0.03, 0, 0.15, 0)
  209. AutoFarm.Size = UDim2.new(0, 125, 0, 36)
  210. AutoFarm.Font = Enum.Font.SourceSansBold
  211. AutoFarm.FontSize = Enum.FontSize.Size24
  212. AutoFarm.Text = "AutoFarm"
  213. AutoFarm.TextColor3 = Color3.new(1, 1, 1)
  214. AutoFarm.MouseButton1Down:connect(function()
  215. if on then
  216. on = false
  217. AutoFarm.BackgroundColor3 = Color3.new(0, 0, 0.5)
  218. AutoFarm.Text = "AutoFarm"
  219. warn("[FloodGui] Autofarm off!")
  220. else
  221. on = true
  222. AutoFarm.BackgroundColor3 = Color3.new(0.5, 0, 0)
  223. AutoFarm.Text = "Stop Autofarm"
  224. warn("[FloodGui] Autofarm on!")
  225. end
  226. local msg = "qwertyuiop"
  227. while on and wait(0.5) do
  228. local r = false
  229. local history = Game:GetService("LogService"):GetLogHistory()
  230. for i = #history, 1, -1 do
  231. if string.find(history[i].message, "2925 2925") and not string.find(history[i].message, msg) then
  232. wait(seconds)
  233. buttons(1)
  234. local exit = game.Workspace.Multiplayer.Map:FindFirstChild("ExitRegion")
  235. Player.HumanoidRootPart.CFrame = CFrame.new(exit.Position.X, exit.Position.Y, exit.Position.Z + 25)
  236. Tpexit()
  237. r = true
  238. msg = "2925 2925"
  239. elseif string.find(history[i].message, "1700 1700") and not string.find(history[i].message, msg) then
  240. wait(seconds)
  241. buttons(0.3)
  242. local spawn = game.Workspace.Multiplayer.Map:FindFirstChild("Spawn")
  243. if spawn.Position.X < 3000 then
  244. Tpexit(1)
  245. else
  246. Tpexit(2)
  247. end
  248. r = true
  249. msg = "1700 1700"
  250. elseif (string.find(history[i].message, "%d%d%d%s%d%d%d") or string.find(history[i].message, "%d%d%d%d%s%d%d%d%d")) and not string.find(history[i].message, msg) then
  251. wait(seconds)
  252. buttons(0.3)
  253. Tpexit()
  254. r = true
  255. msg = history[i].message
  256. elseif string.find(history[i].message, "NewMap") then
  257. r = true
  258. end
  259. if r then
  260. break
  261. end
  262. end
  263. end
  264. end)
  265.  
  266. NoClip.Parent = MainFrame
  267. NoClip.BackgroundColor3 = Color3.new(0, 0, 0.5)
  268. NoClip.Position = UDim2.new(0.53, 0, 0.15, 0)
  269. NoClip.Size = UDim2.new(0, 125, 0, 36)
  270. NoClip.Font = Enum.Font.SourceSansBold
  271. NoClip.FontSize = Enum.FontSize.Size24
  272. NoClip.Text = "NoClip (Off)"
  273. NoClip.TextColor3 = Color3.new(1, 1, 1)
  274. NoClip.MouseButton1Down:connect(function()
  275. if clip then
  276. clip = false
  277. NoClip.BackgroundColor3 = Color3.new(0, 0.5, 0)
  278. NoClip.Text = "NoClip (On)"
  279. warn("[FloodGui] NoClip Enabled!")
  280. else
  281. clip = true
  282. NoClip.BackgroundColor3 = Color3.new(0, 0, 0.5)
  283. NoClip.Text = "NoClip (Off)"
  284. warn("[FloodGui] NoClip Disabled!")
  285. end
  286. game:getService("RunService"):BindToRenderStep("",0,function()
  287. if not game.Players.LocalPlayer.Character:findFirstChildOfClass("Humanoid") then return end
  288. if not clip then
  289. game.Players.LocalPlayer.Character:findFirstChildOfClass("Humanoid"):ChangeState(11)
  290. end
  291. end)
  292. end)
  293.  
  294. Reload.Parent = MainFrame
  295. Reload.BackgroundColor3 = Color3.new(0, 0, 0.5)
  296. Reload.Position = UDim2.new(0.03, 0, 0.35, 0)
  297. Reload.Size = UDim2.new(0, 125, 0, 36)
  298. Reload.Font = Enum.Font.SourceSansBold
  299. Reload.FontSize = Enum.FontSize.Size24
  300. Reload.Text = "Reload GUI"
  301. Reload.TextColor3 = Color3.new(1, 1, 1)
  302. Reload.MouseButton1Down:connect(function()
  303. local wait = Waittime.Text
  304. local txt = tonumber(wait)
  305. if txt then
  306. warn("[FloodGui] WaitTime Set!")
  307. on = false
  308. clip = true
  309. MainFrame:Remove()
  310. GUI(wait)
  311. else
  312. on = false
  313. clip = true
  314. MainFrame:Remove()
  315. GUI(seconds)
  316. warn("[FloodGui] GUI Reloaded!")
  317. end
  318. end)
  319.  
  320. Waittime.Parent = MainFrame
  321. Waittime.BackgroundColor3 = Color3.new(0, 0, 0.5)
  322. Waittime.Position = UDim2.new(0.58, 0, 0.03, 0)
  323. Waittime.Size = UDim2.new(0, 90, 0, 24)
  324. Waittime.Font = Enum.Font.SourceSansBold
  325. Waittime.FontSize = Enum.FontSize.Size16
  326. Waittime.TextSize = 20
  327. Waittime.Text = "WaitTime"
  328. Waittime.TextColor3 = Color3.new(1, 1, 1)
  329.  
  330. end
  331. GUI(3)
  332. warn("FloodGui Loaded!")
  333.  
  334.  
  335.  
  336. --JOIN THE DISCORD SERVER: https://discord.gg/Qpg6qr62qM
  337.  
  338. --SUBSCRIBE TO OUR CHANNEL: https://www.youtube.com/channel/UC4H-RU4wSSPeUD6KenwN1hA
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement