Advertisement
debanhiescobar171

Flee The Facility Premium GUI 2024"

Nov 23rd, 2024
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.70 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 GUI", "Ocean")
  3.  
  4. -- Variables
  5. local Players = game:GetService("Players")
  6. local LocalPlayer = Players.LocalPlayer
  7. local Character = LocalPlayer.Character
  8. local Humanoid = Character:WaitForChild("Humanoid")
  9. local RunService = game:GetService("RunService")
  10.  
  11. -- Functions
  12. local function GodMode()
  13.     if Character and Character:FindFirstChild("Humanoid") then
  14.         Character.Humanoid.MaxHealth = math.huge
  15.         Character.Humanoid.Health = math.huge
  16.     end
  17. end
  18.  
  19. local function AutoHack()
  20.     while wait() do
  21.         if not getgenv().AutoHackEnabled then break end
  22.         pcall(function()
  23.             for _, computer in pairs(workspace:GetDescendants()) do
  24.                 if computer.Name == "Computer" and computer:FindFirstChild("Interact") then
  25.                     Character.HumanoidRootPart.CFrame = computer.Main.CFrame
  26.                     wait(0.2)
  27.                     fireproximityprompt(computer.Interact)
  28.                 end
  29.             end
  30.         end)
  31.     end
  32. end
  33.  
  34. -- Main Tab
  35. local MainTab = Window:NewTab("Main")
  36. local MainSection = MainTab:NewSection("Main Features")
  37.  
  38. MainSection:NewToggle("God Mode", "Become invincible", function(state)
  39.     getgenv().GodModeEnabled = state
  40.     if state then
  41.         GodMode()
  42.     end
  43. end)
  44.  
  45. MainSection:NewToggle("Auto Hack", "Auto hack computers", function(state)
  46.     getgenv().AutoHackEnabled = state
  47.     if state then
  48.         AutoHack()
  49.     end
  50. end)
  51.  
  52. -- ESP Tab
  53. local ESPTab = Window:NewTab("ESP")
  54. local ESPSection = ESPTab:NewSection("ESP Features")
  55.  
  56. ESPSection:NewToggle("Computer ESP", "See computers through walls", function(state)
  57.     getgenv().ComputerESP = state
  58.     while getgenv().ComputerESP do
  59.         for _, computer in pairs(workspace:GetDescendants()) do
  60.             if computer.Name == "Computer" then
  61.                 if not computer:FindFirstChild("Highlight") then
  62.                     local highlight = Instance.new("Highlight")
  63.                     highlight.FillColor = Color3.fromRGB(0, 255, 0)
  64.                     highlight.OutlineColor = Color3.fromRGB(0, 255, 0)
  65.                     highlight.Parent = computer
  66.                 end
  67.             end
  68.         end
  69.         wait(1)
  70.     end
  71. end)
  72.  
  73. ESPSection:NewToggle("Beast ESP", "See the Beast through walls", function(state)
  74.     getgenv().BeastESP = state
  75.     while getgenv().BeastESP do
  76.         for _, player in pairs(Players:GetPlayers()) do
  77.             if player.Character and player.Character:FindFirstChild("Beast") then
  78.                 if not player.Character:FindFirstChild("Highlight") then
  79.                     local highlight = Instance.new("Highlight")
  80.                     highlight.FillColor = Color3.fromRGB(255, 0, 0)
  81.                     highlight.OutlineColor = Color3.fromRGB(255, 0, 0)
  82.                     highlight.Parent = player.Character
  83.                 end
  84.             end
  85.         end
  86.         wait(1)
  87.     end
  88. end)
  89.  
  90. ESPSection:NewToggle("Player ESP", "See players through walls", function(state)
  91.     getgenv().PlayerESP = state
  92.     while getgenv().PlayerESP do
  93.         for _, player in pairs(Players:GetPlayers()) do
  94.             if player ~= LocalPlayer and player.Character then
  95.                 if not player.Character:FindFirstChild("Highlight") then
  96.                     local highlight = Instance.new("Highlight")
  97.                     highlight.FillColor = Color3.fromRGB(0, 0, 255)
  98.                     highlight.OutlineColor = Color3.fromRGB(0, 0, 255)
  99.                     highlight.Parent = player.Character
  100.                 end
  101.             end
  102.         end
  103.         wait(1)
  104.     end
  105. end)
  106.  
  107. -- Map Selector
  108. local MapTab = Window:NewTab("Maps")
  109. local MapSection = MapTab:NewSection("Map Selection")
  110.  
  111. local maps = {"Facility_0", "Facility_1", "Facility_2", "Abandoned_Facility", "Airport"}
  112.  
  113. MapSection:NewDropdown("Select Map", "Choose map to play", maps, function(map)
  114.     game:GetService("ReplicatedStorage").RemoteEvents.MapVote:FireServer(map)
  115. end)
  116.  
  117. -- Settings Tab
  118. local SettingsTab = Window:NewTab("Settings")
  119. local SettingsSection = SettingsTab:NewSection("UI Settings")
  120.  
  121. SettingsSection:NewKeybind("Toggle GUI", "Shows/Hides the GUI", Enum.KeyCode.RightControl, function()
  122.     Library:ToggleUI()
  123. end)
  124.  
  125. -- Anti AFK
  126. LocalPlayer.Idled:Connect(function()
  127.     local VirtualUser = game:GetService("VirtualUser")
  128.     VirtualUser:CaptureController()
  129.     VirtualUser:ClickButton2(Vector2.new())
  130. end)
  131.  
  132. -- Notifications
  133. game.StarterGui:SetCore("SendNotification", {
  134.     Title = "Script Loaded!",
  135.     Text = "Press RightControl to toggle GUI",
  136.     Duration = 5
  137. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement