Advertisement
Mattster5454

Flood escape gui

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