Advertisement
debanhiescobar171

Flee The Facility Ultimate Script V2

Nov 23rd, 2024
3,227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.33 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 V2", "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. -- Mejorado: God Mode Toggle
  71. MainSection:NewToggle("God Mode", "Prevents all damage and freezes health", function(state)
  72.     _G.GodMode = state
  73.    
  74.     local function protectPlayer()
  75.         local player = game.Players.LocalPlayer
  76.         if player.Character then
  77.             local humanoid = player.Character:FindFirstChild("Humanoid")
  78.             if humanoid then
  79.                 local oldHealth = humanoid.Health
  80.                 humanoid:GetPropertyChangedSignal("Health"):Connect(function()
  81.                     if _G.GodMode then
  82.                         humanoid.Health = oldHealth
  83.                     end
  84.                 end)
  85.             end
  86.         end
  87.     end
  88.    
  89.     protectPlayer()
  90.     game.Players.LocalPlayer.CharacterAdded:Connect(function()
  91.         wait(1)
  92.         if _G.GodMode then
  93.             protectPlayer()
  94.         end
  95.     end)
  96. end)
  97.  
  98. -- Mejorado: Perfect Hack Toggle
  99. MainSection:NewToggle("Perfect Hack", "Never fail computer hacks", function(state)
  100.     _G.PerfectHack = state
  101.    
  102.     local oldNamecall
  103.     oldNamecall = hookmetamethod(game, "__namecall", function(self, ...)
  104.         local args = {...}
  105.         local method = getnamecallmethod()
  106.        
  107.         if _G.PerfectHack and method == "FireServer" and self.Name == "ComputerFail" then
  108.             return
  109.         end
  110.        
  111.         return oldNamecall(self, ...)
  112.     end)
  113. end)
  114.  
  115. -- Mejorado: Double Credits and XP
  116. MainSection:NewToggle("Double Credits & XP", "Get double rewards after matches", function(state)
  117.     _G.DoubleRewards = state
  118.    
  119.     local oldNamecall
  120.     oldNamecall = hookmetamethod(game, "__namecall", function(self, ...)
  121.         local args = {...}
  122.         local method = getnamecallmethod()
  123.        
  124.         if _G.DoubleRewards then
  125.             if method == "FireServer" and (self.Name == "AwardCredits" or self.Name == "AwardXP") then
  126.                 args[1] = args[1] * 2
  127.                 return oldNamecall(self, unpack(args))
  128.             end
  129.         end
  130.        
  131.         return oldNamecall(self, ...)
  132.     end)
  133. end)
  134.  
  135. -- ESP Section
  136. local ESPTab = Window:NewTab("ESP")
  137. local ESPSection = ESPTab:NewSection("Visual Features")
  138.  
  139. -- Computer ESP
  140. ESPSection:NewToggle("Computer ESP", "See computers through walls", function(state)
  141.     _G.ComputerESP = state
  142.    
  143.     local function createESP(object)
  144.         if not object:FindFirstChild("ESP") then
  145.             local highlight = Instance.new("Highlight")
  146.             highlight.Name = "ESP"
  147.             highlight.FillColor = Color3.fromRGB(0, 255, 0)
  148.             highlight.OutlineColor = Color3.fromRGB(0, 255, 0)
  149.             highlight.Parent = object
  150.         end
  151.     end
  152.    
  153.     while wait(1) do
  154.         if not _G.ComputerESP then break end
  155.         for _, computer in pairs(workspace:GetDescendants()) do
  156.             if computer:IsA("Model") and computer.Name:find("Computer") then
  157.                 createESP(computer)
  158.             end
  159.         end
  160.     end
  161. end)
  162.  
  163. -- Player ESP
  164. ESPSection:NewToggle("Player ESP", "See players through walls", function(state)
  165.     _G.PlayerESP = state
  166.    
  167.     local function createPlayerESP(player)
  168.         if player.Character and not player.Character:FindFirstChild("ESP") then
  169.             local highlight = Instance.new("Highlight")
  170.             highlight.Name = "ESP"
  171.             highlight.FillColor = Color3.fromRGB(255, 0, 0)
  172.             highlight.OutlineColor = Color3.fromRGB(255, 0, 0)
  173.             highlight.Parent = player.Character
  174.         end
  175.     end
  176.    
  177.     while wait(1) do
  178.         if not _G.PlayerESP then break end
  179.         for _, player in pairs(game.Players:GetPlayers()) do
  180.             if player ~= game.Players.LocalPlayer then
  181.                 createPlayerESP(player)
  182.             end
  183.         end
  184.     end
  185. end)
  186.  
  187. -- Speed Control
  188. local SpeedTab = Window:NewTab("Speed Control")
  189. local SpeedSection = SpeedTab:NewSection("Speed Settings")
  190.  
  191. SpeedSection:NewSlider("Walk Speed", "Changes your walking speed", 500, 16, function(s)
  192.     if game.Players.LocalPlayer.Character then
  193.         game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = s
  194.     end
  195. end)
  196.  
  197. SpeedSection:NewSlider("Jump Power", "Changes your jump power", 500, 50, function(s)
  198.     if game.Players.LocalPlayer.Character then
  199.         game.Players.LocalPlayer.Character.Humanoid.JumpPower = s
  200.     end
  201. end)
  202.  
  203. -- Mejorado: Map Selector con Doble Voto
  204. local MapTab = Window:NewTab("Map Selector")
  205. local MapSection = MapTab:NewSection("Force Map")
  206.  
  207. local maps = {
  208.     "Homestead",
  209.     "Abandoned Facility",
  210.     "Airport",
  211.     "Library",
  212.     "Backrooms",
  213.     "Haunted Mansion",
  214.     "Prison"
  215. }
  216.  
  217. for _, mapName in ipairs(maps) do
  218.     MapSection:NewButton(mapName, "Force " .. mapName .. " map", function()
  219.         -- Primer voto
  220.         game:GetService("ReplicatedStorage").MapVote:FireServer(mapName)
  221.         game:GetService("ReplicatedStorage").MapVoteConfirm:FireServer()
  222.        
  223.         -- Segundo voto (simulado)
  224.         wait(0.1)
  225.         game:GetService("ReplicatedStorage").MapVote:FireServer(mapName)
  226.         game:GetService("ReplicatedStorage").MapVoteConfirm:FireServer()
  227.     end)
  228. end
  229.  
  230. -- Point Stealer mejorado
  231. MainSection:NewToggle("Point Stealer", "Get points from others' hacks", function(state)
  232.     _G.PointStealer = state
  233.    
  234.     local oldNamecall
  235.     oldNamecall = hookmetamethod(game, "__namecall", function(self, ...)
  236.         local args = {...}
  237.         local method = getnamecallmethod()
  238.        
  239.         if _G.PointStealer and method == "FireServer" and self.Name == "ComputerComplete" then
  240.             local player = game.Players.LocalPlayer
  241.             game:GetService("ReplicatedStorage").Points:FireServer(player, 100)
  242.         end
  243.        
  244.         return oldNamecall(self, ...)
  245.     end)
  246. end)
  247.  
  248. -- Floating Icon Click Handler
  249. IconButton.MouseButton1Click:Connect(function()
  250.     FloatingIcon.Enabled = false
  251.     Library:ToggleUI()
  252. end)
  253.  
  254. -- Anti AFK mejorado
  255. local VirtualUser = game:GetService("VirtualUser")
  256. game:GetService("Players").LocalPlayer.Idled:Connect(function()
  257.     VirtualUser:CaptureController()
  258.     VirtualUser:ClickButton2(Vector2.new())
  259. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement