Advertisement
FurkingBoi

flee the facility

Dec 17th, 2019
692
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.34 KB | None | 0 0
  1. local gui = Instance.new("ScreenGui")
  2.  
  3. gui.Name = "FleeTheFacilityGUI"
  4.  
  5. gui.Parent = game.CoreGui
  6.  
  7. gui.ResetOnSpawn = false
  8.  
  9.  
  10.  
  11. local holder = Instance.new("Frame")
  12.  
  13. holder.Name = "Holder"
  14.  
  15. holder.Parent = gui
  16.  
  17. holder.BackgroundColor3 = Color3.fromRGB(90, 90, 90)
  18.  
  19. holder.BorderSizePixel = 0
  20.  
  21. holder.Position = UDim2.new(0.085, 0, 0.3, 0)
  22.  
  23. holder.Active = true
  24.  
  25. holder.Selectable = true
  26.  
  27. holder.Draggable = true
  28.  
  29. holder.Size = UDim2.new(0, 500, 0, 348)
  30.  
  31.  
  32.  
  33. local title = Instance.new("Frame")
  34.  
  35. title.Name = "Title"
  36.  
  37. title.Parent = holder
  38.  
  39. title.BackgroundColor3 = Color3.fromRGB(145, 145, 145)
  40.  
  41. title.BorderSizePixel = 0
  42.  
  43. title.Position = UDim2.new(0.02, 0, 0.037, 0)
  44.  
  45. title.Size = UDim2.new(0, 479, 0, 43)
  46.  
  47.  
  48.  
  49. local menu = Instance.new("Frame")
  50.  
  51. menu.Name = "Menu"
  52.  
  53. menu.Parent = holder
  54.  
  55. menu.BackgroundColor3 = Color3.fromRGB(145, 145, 145)
  56.  
  57. menu.BorderSizePixel = 0
  58.  
  59. menu.Position = UDim2.new(0.02, 0, 0.196, 0)
  60.  
  61. menu.Size = UDim2.new(0, 479, 0, 239)
  62.  
  63.  
  64.  
  65. local closebutton = Instance.new("TextButton")
  66.  
  67. closebutton.Name = "CloseButton"
  68.  
  69. closebutton.Parent = title
  70.  
  71. closebutton.BackgroundColor3 = Color3.fromRGB(255, 80, 80)
  72.  
  73. closebutton.BorderSizePixel = 0
  74.  
  75. closebutton.Position = UDim2.new(0.925, 0, 0.186, 0)
  76.  
  77. closebutton.Size = UDim2.new(0, 26, 0, 26)
  78.  
  79. closebutton.Font = Enum.Font.SourceSansSemibold
  80.  
  81. closebutton.Text = "X"
  82.  
  83. closebutton.TextColor3 = Color3.fromRGB(255, 255, 255)
  84.  
  85. closebutton.TextScaled = true
  86.  
  87. closebutton.TextStrokeTransparency = 0
  88.  
  89. closebutton.TextWrapped = true
  90.  
  91.  
  92.  
  93. local name = Instance.new("TextLabel")
  94.  
  95. name.Name = "Name"
  96.  
  97. name.Parent = title
  98.  
  99. name.BackgroundTransparency = 1
  100.  
  101. name.Position = UDim2.new(0, 0, 0, 0)
  102.  
  103. name.Size = UDim2.new(0, 479, 0, 43)
  104.  
  105. name.Font = Enum.Font.SourceSansSemibold
  106.  
  107. name.Text = "Flee the Facility"
  108.  
  109. name.TextColor3 = Color3.fromRGB(255, 255, 255)
  110.  
  111. name.TextStrokeTransparency = 0
  112.  
  113. name.TextScaled = true
  114.  
  115. name.TextWrapped = true
  116.  
  117.  
  118.  
  119. local tptopc = Instance.new("TextButton")
  120.  
  121. tptopc.Name = "TpToPc"
  122.  
  123. tptopc.Parent = menu
  124.  
  125. tptopc.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  126.  
  127. tptopc.BorderSizePixel = 0
  128.  
  129. tptopc.Position = UDim2.new(0.02, 0, 0.423, 0)
  130.  
  131. tptopc.Size = UDim2.new(0, 210, 0, 30)
  132.  
  133. tptopc.Font = Enum.Font.SourceSansSemibold
  134.  
  135. tptopc.Text = "Teleport to the computer"
  136.  
  137. tptopc.TextColor3 = Color3.fromRGB(255, 255, 255)
  138.  
  139. tptopc.TextSize = 22
  140.  
  141. tptopc.TextStrokeTransparency = 0
  142.  
  143. tptopc.TextWrapped = true
  144.  
  145.  
  146.  
  147. local facility_0 = Instance.new("TextButton")
  148.  
  149. facility_0.Name = "Facility_0"
  150.  
  151. facility_0.Parent = menu
  152.  
  153. facility_0.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  154.  
  155. facility_0.BorderSizePixel = 0
  156.  
  157. facility_0.Position = UDim2.new(0.507, 0, 0.143, 0)
  158.  
  159. facility_0.Size = UDim2.new(0,109, 0, 30)
  160.  
  161. facility_0.Font = Enum.Font.SourceSansSemibold
  162.  
  163. facility_0.Text = "Facility_0"
  164.  
  165. facility_0.TextColor3 = Color3.fromRGB(255, 255, 255)
  166.  
  167. facility_0.TextSize = 14
  168.  
  169. facility_0.TextStrokeTransparency = 0
  170.  
  171. facility_0.TextWrapped = true
  172.  
  173.  
  174.  
  175. local homestead = Instance.new("TextButton")
  176.  
  177. homestead.Name = "Homestead"
  178.  
  179. homestead.Parent = menu
  180.  
  181. homestead.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  182.  
  183. homestead.BorderSizePixel = 0
  184.  
  185. homestead.Position = UDim2.new(0.749, 0, 0.143, 0)
  186.  
  187. homestead.Size = UDim2.new(0,109, 0, 30)
  188.  
  189. homestead.Font = Enum.Font.SourceSansSemibold
  190.  
  191. homestead.Text = "Homestead"
  192.  
  193. homestead.TextColor3 = Color3.fromRGB(255, 255, 255)
  194.  
  195. homestead.TextSize = 14
  196.  
  197. homestead.TextStrokeTransparency = 0
  198.  
  199. homestead.TextWrapped = true
  200.  
  201.  
  202.  
  203. local abandonedprison = Instance.new("TextButton")
  204.  
  205. abandonedprison.Name = "AbandonedPrison"
  206.  
  207. abandonedprison.Parent = menu
  208.  
  209. abandonedprison.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  210.  
  211. abandonedprison.BorderSizePixel = 0
  212.  
  213. abandonedprison.Position = UDim2.new(0.262, 0, 0.143, 0)
  214.  
  215. abandonedprison.Size = UDim2.new(0,109, 0, 30)
  216.  
  217. abandonedprison.Font = Enum.Font.SourceSansSemibold
  218.  
  219. abandonedprison.Text = "Abandoned Prison"
  220.  
  221. abandonedprison.TextColor3 = Color3.fromRGB(255, 255, 255)
  222.  
  223. abandonedprison.TextSize = 14
  224.  
  225. abandonedprison.TextStrokeTransparency = 0
  226.  
  227. abandonedprison.TextWrapped = true
  228.  
  229.  
  230.  
  231. local abandonedfacility = Instance.new("TextButton")
  232.  
  233. abandonedfacility.Name = "AbandonedFacility"
  234.  
  235. abandonedfacility.Parent = menu
  236.  
  237. abandonedfacility.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  238.  
  239. abandonedfacility.BorderSizePixel = 0
  240.  
  241. abandonedfacility.Position = UDim2.new(0.02, 0, 0.143, 0)
  242.  
  243. abandonedfacility.Size = UDim2.new(0,109, 0, 30)
  244.  
  245. abandonedfacility.Font = Enum.Font.SourceSansSemibold
  246.  
  247. abandonedfacility.Text = "Abandoned Facility"
  248.  
  249. abandonedfacility.TextColor3 = Color3.fromRGB(255, 255, 255)
  250.  
  251. abandonedfacility.TextSize = 14
  252.  
  253. abandonedfacility.TextStrokeTransparency = 0
  254.  
  255. abandonedfacility.TextWrapped = true
  256.  
  257.  
  258.  
  259. local playername = Instance.new("TextBox")
  260.  
  261. playername.Name = "PlayerName"
  262.  
  263. playername.Parent = menu
  264.  
  265. playername.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  266.  
  267. playername.BorderSizePixel = 0
  268.  
  269. playername.Position = UDim2.new(0.534, 0, 0.519, 0)
  270.  
  271. playername.Size = UDim2.new(0, 211, 0, 30)
  272.  
  273. playername.Font = Enum.Font.SourceSansSemibold
  274.  
  275. playername.Text = "Player Name Here"
  276.  
  277. playername.TextColor3 = Color3.fromRGB(255, 255, 255)
  278.  
  279. playername.TextSize = 22
  280.  
  281. playername.TextStrokeTransparency = 0
  282.  
  283. playername.TextWrapped = true
  284.  
  285.  
  286.  
  287. local tpfrombeast = Instance.new("TextButton")
  288.  
  289. tpfrombeast.Name = "TpFromBeast"
  290.  
  291. tpfrombeast.Parent = menu
  292.  
  293. tpfrombeast.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  294.  
  295. tpfrombeast.BorderSizePixel = 0
  296.  
  297. tpfrombeast.Position = UDim2.new(0.02, 0, 0.607, 0)
  298.  
  299. tpfrombeast.Size = UDim2.new(0, 210, 0, 30)
  300.  
  301. tpfrombeast.Font = Enum.Font.SourceSansSemibold
  302.  
  303. tpfrombeast.Text = "Teleport from beast"
  304.  
  305. tpfrombeast.TextColor3 = Color3.fromRGB(255, 255, 255)
  306.  
  307. tpfrombeast.TextSize = 22
  308.  
  309. tpfrombeast.TextStrokeTransparency = 0
  310.  
  311. tpfrombeast.TextWrapped = true
  312.  
  313.  
  314.  
  315. local tptoplayer = Instance.new("TextButton")
  316.  
  317. tptoplayer.Name = "TpToPlayer"
  318.  
  319. tptoplayer.Parent = menu
  320.  
  321. tptoplayer.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  322.  
  323. tptoplayer.BorderSizePixel = 0
  324.  
  325. tptoplayer.Position = UDim2.new(0.565, 0, 0.703, 0)
  326.  
  327. tptoplayer.Size = UDim2.new(0, 180, 0, 30)
  328.  
  329. tptoplayer.Font = Enum.Font.SourceSansSemibold
  330.  
  331. tptoplayer.Text = "Teleport to the player"
  332.  
  333. tptoplayer.TextColor3 = Color3.fromRGB(255, 255, 255)
  334.  
  335. tptoplayer.TextSize = 22
  336.  
  337. tptoplayer.TextStrokeTransparency = 0
  338.  
  339. tptoplayer.TextWrapped = true
  340.  
  341.  
  342.  
  343. local tptoexit = Instance.new("TextButton")
  344.  
  345. tptoexit.Name = "TpToExit"
  346.  
  347. tptoexit.Parent = menu
  348.  
  349. tptoexit.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  350.  
  351. tptoexit.BorderSizePixel = 0
  352.  
  353. tptoexit.Position = UDim2.new(0.02, 0, 0.795, 0)
  354.  
  355. tptoexit.Size = UDim2.new(0, 210, 0, 30)
  356.  
  357. tptoexit.Font = Enum.Font.SourceSansSemibold
  358.  
  359. tptoexit.Text = "Teleport to an exit"
  360.  
  361. tptoexit.TextColor3 = Color3.fromRGB(255, 255, 255)
  362.  
  363. tptoexit.TextSize = 22
  364.  
  365. tptoexit.TextStrokeTransparency = 0
  366.  
  367. tptoexit.TextWrapped = true
  368.  
  369.  
  370.  
  371. local choosethemap = Instance.new("TextLabel")
  372.  
  373. choosethemap.Name = "ChooseTheMap"
  374.  
  375. choosethemap.Parent = menu
  376.  
  377. choosethemap.BackgroundTransparency = 1
  378.  
  379. choosethemap.Position = UDim2.new(0.29, 0, 0, 0)
  380.  
  381. choosethemap.Size = UDim2.new(0, 200, 0, 28)
  382.  
  383. choosethemap.Font = Enum.Font.SourceSansSemibold
  384.  
  385. choosethemap.Text = "Choose the Map:"
  386.  
  387. choosethemap.TextColor3 = Color3.fromRGB(255, 255, 255)
  388.  
  389. choosethemap.TextStrokeTransparency = 0
  390.  
  391. choosethemap.TextScaled = true
  392.  
  393. choosethemap.TextWrapped = true
  394.  
  395.  
  396.  
  397. local chosenmap = Instance.new("TextLabel")
  398.  
  399. chosenmap.Name = "ChosenMap"
  400.  
  401. chosenmap.Parent = menu
  402.  
  403. chosenmap.BackgroundTransparency = 1
  404.  
  405. chosenmap.Position = UDim2.new(0.262, 0, 0.275, 0)
  406.  
  407. chosenmap.Size = UDim2.new(0, 225, 0, 14)
  408.  
  409. chosenmap.Font = Enum.Font.SourceSansSemibold
  410.  
  411. chosenmap.Text = "Chosen Map: None"
  412.  
  413. chosenmap.TextColor3 = Color3.fromRGB(255, 255, 255)
  414.  
  415. chosenmap.TextStrokeTransparency = 0
  416.  
  417. chosenmap.TextScaled = true
  418.  
  419. chosenmap.TextWrapped = true
  420.  
  421.  
  422.  
  423. local credits = Instance.new("TextLabel")
  424.  
  425. credits.Name = "Credits"
  426.  
  427. credits.Parent = holder
  428.  
  429. credits.BackgroundTransparency = 1
  430.  
  431. credits.Position = UDim2.new(0.3, 0, 0.881, 0)
  432.  
  433. credits.Size = UDim2.new(0, 200, 0, 41)
  434.  
  435. credits.Font = Enum.Font.SourceSansSemibold
  436.  
  437. credits.Text = "Hamburghini#6590"
  438.  
  439. credits.TextColor3 = Color3.fromRGB(255, 255, 255)
  440.  
  441. credits.TextStrokeTransparency = 0
  442.  
  443. credits.TextScaled = true
  444.  
  445. credits.TextWrapped = true
  446.  
  447.  
  448.  
  449. local mapvalue = Instance.new("StringValue")
  450.  
  451.  
  452.  
  453. closebutton.MouseButton1Down:connect(function()
  454.  
  455. gui:Destroy()
  456.  
  457. end)
  458.  
  459.  
  460.  
  461. abandonedfacility.MouseButton1Down:connect(function()
  462.  
  463. mapvalue.Value = "Abandoned Facility by iiGalaxyKoala, Vexhins, and cyrda"
  464.  
  465. chosenmap.Text = "Chosen Map: Abandoned Facility"
  466.  
  467. end)
  468.  
  469.  
  470.  
  471. abandonedprison.MouseButton1Down:connect(function()
  472.  
  473. mapvalue.Value = "Abandoned Prison by AtomixKing and Duck_Ify"
  474.  
  475. chosenmap.Text = "Chosen Map: Abandoned Prison"
  476.  
  477. end)
  478.  
  479.  
  480.  
  481. facility_0.MouseButton1Down:connect(function()
  482.  
  483. mapvalue.Value = "Facility_0 by MrWindy"
  484.  
  485. chosenmap.Text = "Chosen Map: Facility_0"
  486.  
  487. end)
  488.  
  489.  
  490.  
  491. homestead.MouseButton1Down:connect(function()
  492.  
  493. mapvalue.Value = "Homestead by MrWindy"
  494.  
  495. chosenmap.Text = "Chosen Map: Homestead"
  496.  
  497. end)
  498.  
  499.  
  500.  
  501. tptopc.MouseButton1Down:connect(function()
  502.  
  503. local pc = game.Workspace:FindFirstChild(mapvalue.Value):FindFirstChild("ComputerTable")
  504.  
  505.  
  506.  
  507. if pc.Screen.BrickColor == BrickColor.new("Dark green") then
  508.  
  509. pc.Name = "HackedPC"
  510.  
  511. game.StarterGui:SetCore("ChatMakeSystemMessage", {Text = "Found PC is already hacked. Click again to find another PC.", Color = Color3.fromRGB(255, 0, 0), FontSize = Enum.FontSize.Size24,})
  512.  
  513. return
  514.  
  515. end
  516.  
  517.  
  518.  
  519. if pc.Screen.BrickColor == BrickColor.new("Bright blue") or pc.Screen.BrickColor == BrickColor.new("Bright red") then
  520.  
  521. if mapvalue.Value == "Abandoned Facility by iiGalaxyKoala, Vexhins, and cyrda" then
  522.  
  523. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(pc.BasePart.Position.X, pc.BasePart.Position.Y + 6, pc.BasePart.Position.Z)
  524.  
  525. elseif mapvalue.Value == "Facility_0 by MrWindy" or mapvalue.Value == "Abandoned Prison by AtomixKing and Duck_Ify" or mapvalue.Value == "Homestead by MrWindy" then
  526.  
  527. pc.ClearWall.CanCollide = false
  528.  
  529. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(pc.BasePart.Position.X, pc.BasePart.Position.Y + 6, pc.BasePart.Position.Z)
  530.  
  531. end
  532.  
  533. end
  534.  
  535. end)
  536.  
  537.  
  538.  
  539. tptoplayer.MouseButton1Down:connect(function()
  540.  
  541. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game.Workspace:FindFirstChild(playername.Text).HumanoidRootPart.Position)
  542.  
  543. end)
  544.  
  545.  
  546.  
  547. tptoexit.MouseButton1Down:connect(function()
  548.  
  549. local exit = game.Workspace:FindFirstChild(mapvalue.Value):FindFirstChild("ExitDoor")
  550.  
  551. local exdoorpos = exit.Light.Position
  552.  
  553. local humrootpart = game.Players.LocalPlayer.Character.HumanoidRootPart
  554.  
  555. humrootpart.CFrame = CFrame.new(exdoorpos.X, exdoorpos.Y - 4.5, exdoorpos.Z)
  556.  
  557. end)
  558.  
  559.  
  560.  
  561. tpfrombeast.MouseButton1Down:connect(function()
  562.  
  563. local collide = game.Workspace:FindFirstChild(mapvalue.Value):FindFirstChild("FreezePod"):GetChildren()
  564.  
  565. local tp = game.Workspace:FindFirstChild(mapvalue.Value):FindFirstChild("FreezePod").BasePart
  566.  
  567. collide.CanCollide = false
  568.  
  569. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(tp.Position.X, tp.Position.Y + 3, tp.Position.Z)
  570.  
  571. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement