Advertisement
Guest User

Flee the Facility GUI Roblox

a guest
Mar 29th, 2020
23,374
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.77 KB | None | 0 0
  1. local FLEE_THE_FACILITY_REVAMPED_GUI = Instance.new("ScreenGui")
  2. local MainFrame = Instance.new("Frame")
  3. local title = Instance.new("TextLabel")
  4. local status = Instance.new("TextLabel")
  5. local tptauc = Instance.new("TextButton")
  6. local tpaftb = Instance.new("TextButton")
  7. local tptae = Instance.new("TextButton")
  8. local tptlp = Instance.new("TextButton")
  9. local playernamebox = Instance.new("TextBox")
  10. local exit = Instance.new("TextButton")
  11.  
  12. FLEE_THE_FACILITY_REVAMPED_GUI.Name = "FLEE_THE_FACILITY_REVAMPED_GUI"
  13. FLEE_THE_FACILITY_REVAMPED_GUI.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  14. FLEE_THE_FACILITY_REVAMPED_GUI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  15. FLEE_THE_FACILITY_REVAMPED_GUI.DisplayOrder = 9999
  16. FLEE_THE_FACILITY_REVAMPED_GUI.ResetOnSpawn = false
  17.  
  18. MainFrame.Name = "MainFrame"
  19. MainFrame.Parent = FLEE_THE_FACILITY_REVAMPED_GUI
  20. MainFrame.BackgroundColor3 = Color3.fromRGB(85, 170, 127)
  21. MainFrame.BorderColor3 = Color3.fromRGB(85, 170, 0)
  22. MainFrame.BorderSizePixel = 7
  23. MainFrame.Position = UDim2.new(0.0263719559, 0, 0.475089371, 0)
  24. MainFrame.Size = UDim2.new(0, 201, 0, 400)
  25. MainFrame.ZIndex = 9999
  26. MainFrame.Active = true
  27. MainFrame.Selectable = true
  28. MainFrame.Draggable = true
  29.  
  30. title.Name = "title"
  31. title.Parent = MainFrame
  32. title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  33. title.BackgroundTransparency = 1.000
  34. title.Size = UDim2.new(0, 160, 0, 50)
  35. title.Font = Enum.Font.GothamBold
  36. title.Text = "Revamped \"Flee the Facility\" Gui"
  37. title.TextColor3 = Color3.fromRGB(0, 0, 0)
  38. title.TextSize = 20.000
  39. title.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
  40. title.TextStrokeTransparency = 0.750
  41. title.TextWrapped = true
  42.  
  43. status.Name = "status"
  44. status.Parent = MainFrame
  45. status.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  46. status.BorderSizePixel = 0
  47. status.Position = UDim2.new(0, 0, 0.125, 0)
  48. status.Size = UDim2.new(0, 200, 0, 80)
  49. status.Font = Enum.Font.SciFi
  50. status.Text = " Awaiting map..."
  51. status.TextColor3 = Color3.fromRGB(255, 255, 255)
  52. status.TextSize = 20.000
  53. status.TextStrokeColor3 = Color3.fromRGB(0, 255, 0)
  54. status.TextStrokeTransparency = 0.750
  55. status.TextWrapped = true
  56. status.TextXAlignment = Enum.TextXAlignment.Left
  57. status.TextYAlignment = Enum.TextYAlignment.Top
  58.  
  59. tptauc.Name = "tptauc"
  60. tptauc.Parent = MainFrame
  61. tptauc.BackgroundColor3 = Color3.fromRGB(255, 255, 127)
  62. tptauc.BorderSizePixel = 0
  63. tptauc.Position = UDim2.new(0, 0, 0.349999994, 0)
  64. tptauc.Size = UDim2.new(0, 200, 0, 50)
  65. tptauc.Font = Enum.Font.GothamBold
  66. tptauc.Text = "Teleport to an unhacked computer"
  67. tptauc.TextColor3 = Color3.fromRGB(0, 0, 0)
  68. tptauc.TextSize = 20.000
  69. tptauc.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
  70. tptauc.TextStrokeTransparency = 0.000
  71. tptauc.TextWrapped = true
  72.  
  73. tpaftb.Name = "tpaftb"
  74. tpaftb.Parent = MainFrame
  75. tpaftb.BackgroundColor3 = Color3.fromRGB(255, 255, 127)
  76. tpaftb.BorderSizePixel = 0
  77. tpaftb.Position = UDim2.new(0, 0, 0.5, 0)
  78. tpaftb.Size = UDim2.new(0, 200, 0, 50)
  79. tpaftb.Font = Enum.Font.GothamBold
  80. tpaftb.Text = "Teleport away from the Beast"
  81. tpaftb.TextColor3 = Color3.fromRGB(0, 0, 0)
  82. tpaftb.TextSize = 20.000
  83. tpaftb.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
  84. tpaftb.TextStrokeTransparency = 0.000
  85. tpaftb.TextWrapped = true
  86.  
  87. tptae.Name = "tptae"
  88. tptae.Parent = MainFrame
  89. tptae.BackgroundColor3 = Color3.fromRGB(255, 255, 127)
  90. tptae.BorderSizePixel = 0
  91. tptae.Position = UDim2.new(0, 0, 0.649999976, 0)
  92. tptae.Size = UDim2.new(0, 200, 0, 50)
  93. tptae.Font = Enum.Font.GothamBold
  94. tptae.Text = "Teleport to an exit"
  95. tptae.TextColor3 = Color3.fromRGB(0, 0, 0)
  96. tptae.TextSize = 20.000
  97. tptae.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
  98. tptae.TextStrokeTransparency = 0.000
  99.  
  100. tptlp.Name = "tptlp"
  101. tptlp.Parent = MainFrame
  102. tptlp.BackgroundColor3 = Color3.fromRGB(255, 255, 127)
  103. tptlp.BorderSizePixel = 0
  104. tptlp.Position = UDim2.new(0, 0, 0.875, 0)
  105. tptlp.Size = UDim2.new(0, 200, 0, 50)
  106. tptlp.Font = Enum.Font.GothamBold
  107. tptlp.Text = "Teleport to listed player"
  108. tptlp.TextColor3 = Color3.fromRGB(0, 0, 0)
  109. tptlp.TextSize = 20.000
  110. tptlp.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
  111. tptlp.TextStrokeTransparency = 0.000
  112. tptlp.TextWrapped = true
  113.  
  114. playernamebox.Name = "playernamebox"
  115. playernamebox.Parent = MainFrame
  116. playernamebox.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  117. playernamebox.BorderSizePixel = 0
  118. playernamebox.Position = UDim2.new(0, 0, 0.82249999, 0)
  119. playernamebox.Size = UDim2.new(0, 200, 0, 21)
  120. playernamebox.ClearTextOnFocus = false
  121. playernamebox.Font = Enum.Font.Code
  122. playernamebox.PlaceholderColor3 = Color3.fromRGB(255, 255, 255)
  123. playernamebox.PlaceholderText = "PlayerName"
  124. playernamebox.Text = ""
  125. playernamebox.TextColor3 = Color3.fromRGB(85, 255, 255)
  126. playernamebox.TextSize = 14.000
  127. playernamebox.TextStrokeColor3 = Color3.fromRGB(85, 255, 0)
  128. playernamebox.TextStrokeTransparency = 0.750
  129.  
  130. exit.Name = "exit"
  131. exit.Parent = MainFrame
  132. exit.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  133. exit.BorderSizePixel = 0
  134. exit.Position = UDim2.new(0.796000004, 0, 0.0125000002, 0)
  135. exit.Size = UDim2.new(0, 40, 0, 40)
  136. exit.Font = Enum.Font.GothamBold
  137. exit.Text = "X"
  138. exit.TextColor3 = Color3.fromRGB(0, 0, 0)
  139. exit.TextSize = 30.000
  140. exit.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
  141. exit.TextStrokeTransparency = 0.000
  142. exit.TextWrapped = true
  143.  
  144. local mapNames = {"Facility_0 by MrWindy","Abandoned Facility by iiGalaxyKoala, Vexhins, and cyrda","Abandoned Prison by AtomixKing and Duck_Ify","Homestead by MrWindy","Airport by deadlybones28"}
  145. local currMap = nil
  146. spawn(function()
  147.     while wait() do
  148.         for _,v in pairs(workspace:GetChildren()) do
  149.             for i = 1, #mapNames do
  150.                 if v.Name == mapNames[i] then
  151.                     currMap = mapNames[i]
  152.                     break
  153.                 end
  154.             end
  155.         end
  156.         if currMap then
  157.             if workspace:FindFirstChild(currMap) then
  158.                 MainFrame.status.Text = " Map: " .. currMap
  159.             else
  160.                 MainFrame.status.Text = " Awaiting map..."
  161.             end
  162.         else
  163.             MainFrame.status.Text = " Awaiting map..."
  164.         end
  165.     end
  166. end)
  167. MainFrame.tptauc.MouseButton1Click:Connect(function()
  168.     if workspace:FindFirstChild(currMap) then
  169.         local pc
  170.         for _,v in pairs(workspace:FindFirstChild(currMap):GetChildren()) do
  171.             if v.Name == "ComputerTable" then
  172.                 if v.Screen.BrickColor ~= BrickColor.new("Dark green") then
  173.                     pc = v
  174.                     break
  175.                 end
  176.             end
  177.         end
  178.         if pc:FindFirstChild("ClearWall") then
  179.             pc.ClearWall.CanCollide = false
  180.         end
  181.         game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(pc.BasePart.Position.X, pc.BasePart.Position.Y + 6, pc.BasePart.Position.Z)
  182.     end
  183. end)
  184. MainFrame.tpaftb.MouseButton1Click:Connect(function()
  185.     if workspace:FindFirstChild(currMap) then
  186.         workspace:FindFirstChild(currMap):FindFirstChild("FreezePod"):GetChildren().CanCollide = false
  187.         game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(workspace:FindFirstChild(currMap):FindFirstChild("FreezePod").BasePart.Position.X, workspace:FindFirstChild(currMap):FindFirstChild("FreezePod").BasePart.Position.Y + 3, workspace:FindFirstChild(currMap):FindFirstChild("FreezePod").BasePart.Position.Z)
  188.     end
  189. end)
  190. MainFrame.tptae.MouseButton1Click:Connect(function()
  191.     if workspace:FindFirstChild(currMap) then
  192.         game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(workspace:FindFirstChild(currMap):FindFirstChild("ExitDoor").Light.Position.X, workspace:FindFirstChild(currMap):FindFirstChild("ExitDoor").Light.Position.Y - 4.5, workspace:FindFirstChild(currMap):FindFirstChild("ExitDoor").Light.Position.Z)
  193.     end
  194. end)
  195. MainFrame.tptlp.MouseButton1Click:Connect(function()
  196.     if workspace:FindFirstChild(MainFrame.playernamebox.Text) then
  197.         game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(workspace:FindFirstChild(MainFrame.playernamebox.Text).HumanoidRootPart.Position)
  198.     end
  199. end)
  200. MainFrame.exit.MouseButton1Click:Connect(function()
  201.     MainFrame.Parent:Destroy()
  202. end)
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement