Advertisement
debanhiescobar171

"Flee The Facility Ultimate Script V1

Nov 23rd, 2024
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.36 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 Ultimate Script", "Midnight")
  3.  
  4. -- Create Floating Icon
  5. local CoreGui = game:GetService("CoreGui")
  6. local FloatingIcon = Instance.new("ScreenGui")
  7. local IconButton = Instance.new("ImageButton")
  8.  
  9. FloatingIcon.Name = "FloatingMenuIcon"
  10. FloatingIcon.Parent = CoreGui
  11. FloatingIcon.Enabled = false
  12.  
  13. IconButton.Name = "MenuIcon"
  14. IconButton.Parent = FloatingIcon
  15. IconButton.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  16. IconButton.BackgroundTransparency = 0.1
  17. IconButton.Position = UDim2.new(0, 10, 0.5, -25)
  18. IconButton.Size = UDim2.new(0, 50, 0, 50)
  19. IconButton.Image = "rbxassetid://3926307971"
  20. IconButton.ImageColor3 = Color3.fromRGB(255, 255, 255)
  21.  
  22. -- Make Icon Draggable
  23. local UserInputService = game:GetService("UserInputService")
  24. local dragging
  25. local dragInput
  26. local dragStart
  27. local startPos
  28.  
  29. local function update(input)
  30.     local delta = input.Position - dragStart
  31.     IconButton.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  32. end
  33.  
  34. IconButton.InputBegan:Connect(function(input)
  35.     if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  36.         dragging = true
  37.         dragStart = input.Position
  38.         startPos = IconButton.Position
  39.        
  40.         input.Changed:Connect(function()
  41.             if input.UserInputState == Enum.UserInputState.End then
  42.                 dragging = false
  43.             end
  44.         end)
  45.     end
  46. end)
  47.  
  48. IconButton.InputChanged:Connect(function(input)
  49.     if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  50.         dragInput = input
  51.     end
  52. end)
  53.  
  54. UserInputService.InputChanged:Connect(function(input)
  55.     if input == dragInput and dragging then
  56.         update(input)
  57.     end
  58. end)
  59.  
  60. -- Main Tab
  61. local MainTab = Window:NewTab("Main Features")
  62. local MainSection = MainTab:NewSection("Main Functions")
  63.  
  64. -- Minimize Button
  65. MainSection:NewButton("Minimize GUI", "Minimizes the menu to a floating icon", function()
  66.     Library:ToggleUI()
  67.     FloatingIcon.Enabled = true
  68. end)
  69.  
  70. -- God Mode Toggle
  71. MainSection:NewToggle("God Mode", "Prevents all damage and freezes health", function(state)
  72.     _G.GodMode = state
  73.     while _G.GodMode do
  74.         local player = game.Players.LocalPlayer
  75.         if player.Character and player.Character:FindFirstChild("Humanoid") then
  76.             player.Character.Humanoid.Health = 100
  77.         end
  78.         wait()
  79.     end
  80. end)
  81.  
  82. -- Perfect Hack Toggle
  83. MainSection:NewToggle("Perfect Hack", "Never fail computer hacks", function(state)
  84.     _G.PerfectHack = state
  85.     local mt = getrawmetatable(game)
  86.     local old = mt.__namecall
  87.     setreadonly(mt, false)
  88.     mt.__namecall = newcclosure(function(self, ...)
  89.         local args = {...}
  90.         local method = getnamecallmethod()
  91.         if _G.PerfectHack and method == "FireServer" and self.Name == "ComputerFail" then
  92.             return
  93.         end
  94.         return old(self, ...)
  95.     end)
  96. end)
  97.  
  98. -- Double Credits and XP
  99. MainSection:NewToggle("Double Credits & XP", "Get double rewards after matches", function(state)
  100.     _G.DoubleRewards = state
  101.     local mt = getrawmetatable(game)
  102.     local old = mt.__namecall
  103.     setreadonly(mt, false)
  104.     mt.__namecall = newcclosure(function(self, ...)
  105.         local args = {...}
  106.         local method = getnamecallmethod()
  107.         if _G.DoubleRewards and method == "FireServer" and (self.Name == "AwardCredits" or self.Name == "AwardXP") then
  108.             args[1] = args[1] * 2
  109.         end
  110.         return old(self, unpack(args))
  111.     end)
  112. end)
  113.  
  114. -- ESP Section
  115. local ESPTab = Window:NewTab("ESP")
  116. local ESPSection = ESPTab:NewSection("Visual Features")
  117.  
  118. -- Computer ESP
  119. ESPSection:NewToggle("Computer ESP", "See computers through walls", function(state)
  120.     _G.ComputerESP = state
  121.     while _G.ComputerESP do
  122.         for _, computer in pairs(workspace:GetDescendants()) do
  123.             if computer:IsA("Model") and computer.Name:find("Computer") then
  124.                 if not computer:FindFirstChild("ESP") then
  125.                     local highlight = Instance.new("Highlight")
  126.                     highlight.Name = "ESP"
  127.                     highlight.FillColor = Color3.fromRGB(0, 255, 0)
  128.                     highlight.OutlineColor = Color3.fromRGB(0, 255, 0)
  129.                     highlight.Parent = computer
  130.                 end
  131.             end
  132.         end
  133.         wait(1)
  134.     end
  135. end)
  136.  
  137. -- Player ESP
  138. ESPSection:NewToggle("Player ESP", "See players through walls", function(state)
  139.     _G.PlayerESP = state
  140.     while _G.PlayerESP do
  141.         for _, player in pairs(game.Players:GetPlayers()) do
  142.             if player ~= game.Players.LocalPlayer then
  143.                 if player.Character and not player.Character:FindFirstChild("ESP") then
  144.                     local highlight = Instance.new("Highlight")
  145.                     highlight.Name = "ESP"
  146.                     highlight.FillColor = Color3.fromRGB(255, 0, 0)
  147.                     highlight.OutlineColor = Color3.fromRGB(255, 0, 0)
  148.                     highlight.Parent = player.Character
  149.                 end
  150.             end
  151.         end
  152.         wait(1)
  153.     end
  154. end)
  155.  
  156. -- Speed Control
  157. local SpeedTab = Window:NewTab("Speed Control")
  158. local SpeedSection = SpeedSection:NewSection("Speed Settings")
  159.  
  160. SpeedSection:NewSlider("Walk Speed", "Changes your walking speed", 500, 16, function(s)
  161.     game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = s
  162. end)
  163.  
  164. SpeedSection:NewSlider("Jump Power", "Changes your jump power", 500, 50, function(s)
  165.     game.Players.LocalPlayer.Character.Humanoid.JumpPower = s
  166. end)
  167.  
  168. -- Point Stealer
  169. MainSection:NewToggle("Point Stealer", "Get points from others' hacks", function(state)
  170.     _G.PointStealer = state
  171.     local mt = getrawmetatable(game)
  172.     local old = mt.__namecall
  173.     setreadonly(mt, false)
  174.     mt.__namecall = newcclosure(function(self, ...)
  175.         local args = {...}
  176.         local method = getnamecallmethod()
  177.         if _G.PointStealer and method == "FireServer" and self.Name == "ComputerComplete" then
  178.             local player = game.Players.LocalPlayer
  179.             -- Add points to your score
  180.             game:GetService("ReplicatedStorage").Points:FireServer(player, 100)
  181.         end
  182.         return old(self, ...)
  183.     end)
  184. end)
  185.  
  186. -- Map Selector
  187. local MapTab = Window:NewTab("Map Selector")
  188. local MapSection = MapTab:NewSection("Force Map")
  189.  
  190. local maps = {
  191.     "Homestead",
  192.     "Abandoned Facility",
  193.     "Airport",
  194.     "Library",
  195.     "Backrooms",
  196.     "Haunted Mansion",
  197.     "Prison"
  198. }
  199.  
  200. for _, mapName in ipairs(maps) do
  201.     MapSection:NewButton(mapName, "Force " .. mapName .. " map", function()
  202.         local args = {
  203.             [1] = mapName
  204.         }
  205.         game:GetService("ReplicatedStorage").MapVote:FireServer(unpack(args))
  206.         game:GetService("ReplicatedStorage").MapVoteConfirm:FireServer()
  207.     end)
  208. end
  209.  
  210. -- Floating Icon Click Handler
  211. IconButton.MouseButton1Click:Connect(function()
  212.     FloatingIcon.Enabled = false
  213.     Library:ToggleUI()
  214. end)
  215.  
  216. -- Anti AFK
  217. local player = game.Players.LocalPlayer
  218. local connections = getconnections(player.Idled)
  219. for _, connection in ipairs(connections) do
  220.     connection:Disable()
  221. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement