Advertisement
debanhiescobar171

Flee The Facility Premium GUI 2024"

Nov 23rd, 2024 (edited)
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.87 KB | None | 0 0
  1. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))()
  2. local Window = Library.CreateLib("Flee The Facility Premium 2024", "Ocean")
  3.  
  4. -- Variables
  5. local Players = game:GetService("Players")
  6. local LocalPlayer = Players.LocalPlayer
  7. local RunService = game:GetService("RunService")
  8. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  9.  
  10. -- Main Tab
  11. local Main = Window:NewTab("Main")
  12. local MainSection = Main:NewSection("Main Features")
  13.  
  14. MainSection:NewToggle("God Mode", "Makes you immune to the Beast", function(state)
  15.     if state then
  16.         if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
  17.             LocalPlayer.Character.Humanoid.MaxHealth = math.huge
  18.             LocalPlayer.Character.Humanoid.Health = math.huge
  19.         end
  20.     else
  21.         if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
  22.             LocalPlayer.Character.Humanoid.MaxHealth = 100
  23.             LocalPlayer.Character.Humanoid.Health = 100
  24.         end
  25.     end
  26. end)
  27.  
  28. MainSection:NewToggle("Auto Hack", "Automatically hacks computers", function(state)
  29.     getgenv().autohack = state
  30.     while getgenv().autohack do
  31.         pcall(function()
  32.             for _, computer in pairs(workspace:GetDescendants()) do
  33.                 if computer.Name == "Computer" and computer:FindFirstChild("Interact") then
  34.                     if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
  35.                         LocalPlayer.Character.HumanoidRootPart.CFrame = computer.Main.CFrame
  36.                         wait(0.2)
  37.                         fireproximityprompt(computer.Interact)
  38.                     end
  39.                 end
  40.             end
  41.         end)
  42.         wait(1)
  43.     end
  44. end)
  45.  
  46. -- ESP Tab
  47. local ESP = Window:NewTab("ESP")
  48. local ESPSection = ESP:NewSection("ESP Features")
  49.  
  50. local function createHighlight(parent, color)
  51.     local highlight = Instance.new("Highlight")
  52.     highlight.Parent = parent
  53.     highlight.FillColor = color
  54.     highlight.OutlineColor = color
  55.     return highlight
  56. end
  57.  
  58. ESPSection:NewToggle("Computer ESP", "See computers through walls", function(state)
  59.     if state then
  60.         for _, computer in pairs(workspace:GetDescendants()) do
  61.             if computer.Name == "Computer" then
  62.                 createHighlight(computer, Color3.fromRGB(0, 255, 0))
  63.             end
  64.         end
  65.     else
  66.         for _, computer in pairs(workspace:GetDescendants()) do
  67.             if computer.Name == "Computer" and computer:FindFirstChild("Highlight") then
  68.                 computer.Highlight:Destroy()
  69.             end
  70.         end
  71.     end
  72. end)
  73.  
  74. ESPSection:NewToggle("Beast ESP", "See the Beast through walls", function(state)
  75.     if state then
  76.         for _, player in pairs(Players:GetPlayers()) do
  77.             if player.Character and player.Character:FindFirstChild("Beast") then
  78.                 createHighlight(player.Character, Color3.fromRGB(255, 0, 0))
  79.             end
  80.         end
  81.     else
  82.         for _, player in pairs(Players:GetPlayers()) do
  83.             if player.Character and player.Character:FindFirstChild("Beast") and
  84.                player.Character:FindFirstChild("Highlight") then
  85.                 player.Character.Highlight:Destroy()
  86.             end
  87.         end
  88.     end
  89. end)
  90.  
  91. ESPSection:NewToggle("Player ESP", "See other players through walls", function(state)
  92.     if state then
  93.         for _, player in pairs(Players:GetPlayers()) do
  94.             if player ~= LocalPlayer and player.Character then
  95.                 createHighlight(player.Character, Color3.fromRGB(0, 0, 255))
  96.             end
  97.         end
  98.     else
  99.         for _, player in pairs(Players:GetPlayers()) do
  100.             if player ~= LocalPlayer and player.Character and
  101.                player.Character:FindFirstChild("Highlight") then
  102.                 player.Character.Highlight:Destroy()
  103.             end
  104.         end
  105.     end
  106. end)
  107.  
  108. -- Map Selector
  109. local Maps = Window:NewTab("Maps")
  110. local MapsSection = Maps:NewSection("Map Selector")
  111.  
  112. local mapList = {
  113.     "Facility_0",
  114.     "Facility_1",
  115.     "Facility_2",
  116.     "Abandoned_Facility",
  117.     "Airport"
  118. }
  119.  
  120. MapsSection:NewDropdown("Select Map", "Choose the next map", mapList, function(selectedMap)
  121.     ReplicatedStorage.RemoteEvents.MapVote:FireServer(selectedMap)
  122. end)
  123.  
  124. -- Settings
  125. local Settings = Window:NewTab("Settings")
  126. local SettingsSection = Settings:NewSection("UI Settings")
  127.  
  128. SettingsSection:NewKeybind("Toggle UI", "Shows/Hides the menu (RightControl)", Enum.KeyCode.RightControl, function()
  129.     Library:ToggleUI()
  130. end)
  131.  
  132. -- Anti AFK
  133. local antiAFK = true
  134. LocalPlayer.Idled:Connect(function()
  135.     if antiAFK then
  136.         local VirtualUser = game:GetService("VirtualUser")
  137.         VirtualUser:CaptureController()
  138.         VirtualUser:ClickButton2(Vector2.new())
  139.     end
  140. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement