Advertisement
Someoneyouhate

Flood Escape 2 Script

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