Dark_Agent

FE Walkfling GUI

Dec 17th, 2025 (edited)
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 14.35 KB | Cybersecurity | 0 0
  1. if not game:IsLoaded() then game.Loaded:Wait() end
  2.  
  3. function missing(t, f, fallback)
  4.     if type(f) == t then return f end
  5.     return fallback
  6. end
  7.  
  8. cloneref = missing("function", cloneref, function(...) return ... end)
  9. newcclosure = missing("function", newcclosure, function(f) return f end)
  10. hookfunction = missing("function", hookfunction)
  11. hookmetamethod = missing("function", hookmetamethod)
  12. getnamecallmethod = missing("function", getnamecallmethod or get_namecall_method)
  13. checkcaller = missing("function", checkcaller, function() return false end)
  14. getactors = missing("function", getactors, function() return {} end)
  15. run_on_actor = missing("function", run_on_actor, function() end)
  16. isfunctionhooked = missing("function", isfunctionhooked, function() return false end)
  17. restorefunction = missing("function", restorefunction, function() end)
  18.  
  19. sethidden = missing("function", sethiddenproperty or set_hidden_property or set_hidden_prop)
  20. gethidden = missing("function", gethiddenproperty or get_hidden_property or get_hidden_prop)
  21. setscriptable = missing("function", setscriptable, nil)
  22.  
  23. local function SafeSetProperty(instance, property, value)
  24.     pcall(function()
  25.         if sethidden then
  26.             sethidden(instance, property, value)
  27.         elseif setscriptable then
  28.             setscriptable(instance, property, true)
  29.             instance[property] = value
  30.         else
  31.             instance[property] = value
  32.         end
  33.     end)
  34. end
  35.  
  36. task.spawn(function()
  37.     pcall(function()
  38.         if not (hookfunction and hookmetamethod and getnamecallmethod) then return end
  39.         local ProtectedInstances = {}
  40.         local _Instance = Instance.new
  41.         local _tostring = tostring
  42.        
  43.         local InstanceHook; InstanceHook = hookfunction(_Instance, newcclosure(function(...)
  44.             if checkcaller() then
  45.                 local NewInstance = InstanceHook(...)
  46.                 if NewInstance then
  47.                     NewInstance:SetAttribute("MainVM", true)
  48.                     ProtectedInstances[NewInstance] = true
  49.                 end
  50.                 return NewInstance
  51.             end
  52.             return InstanceHook(...)
  53.         end))
  54.  
  55.         local tostringHook; tostringHook = hookfunction(_tostring, newcclosure(function(...)
  56.             if not checkcaller() then
  57.                 local Arguments = {...}
  58.                 if ProtectedInstances[Arguments[1]] then return end
  59.             end
  60.             return tostringHook(...)
  61.         end))
  62.  
  63.         local FunctionHook; FunctionHook = hookmetamethod(game, "__namecall", newcclosure(function(self, ...)
  64.             local Arguments = {...}
  65.             local Method = getnamecallmethod()
  66.             if not checkcaller() then
  67.                 if ProtectedInstances[self] and Method:match("IsA") then return end
  68.                 if Method:match("^FindFirst") then
  69.                     local Instance = self[Method](self, Arguments[1])
  70.                     if Instance and ProtectedInstances[Instance] then return false end
  71.                 end
  72.                 if Method:match("Attribute") and Arguments[1] == "MainVM" then return false end
  73.             end
  74.             return FunctionHook(self, ...)
  75.         end))
  76.  
  77.         local PropertiesHook; PropertiesHook = hookmetamethod(game, "__index", newcclosure(function(self, index)
  78.             if index:match("^FindFirst") and not checkcaller() then
  79.                 local IndexFunction = self[index]
  80.                 if typeof(IndexFunction) == "function" and not isfunctionhooked(IndexFunction) then
  81.                     local IndexFunctionHook; IndexFunctionHook = hookfunction(IndexFunction, newcclosure(function(...)
  82.                         if not checkcaller() then
  83.                             local Arguments = {...}
  84.                             restorefunction(IndexFunction)
  85.                             local Instance = IndexFunction(self, Arguments[2])
  86.                             if Instance and ProtectedInstances[Instance] then return false end
  87.                         end
  88.                     end))
  89.                 end
  90.             end
  91.             if not checkcaller() and ProtectedInstances[self] then return end
  92.             return PropertiesHook(self, index)
  93.         end))
  94.     end)
  95. end)
  96.  
  97. Services = setmetatable({}, {
  98.     __index = function(self, name)
  99.         local success, cache = pcall(function()
  100.             return cloneref(game:GetService(name))
  101.         end)
  102.         if success then
  103.             rawset(self, name, cache)
  104.             return cache
  105.         else
  106.             error("Invalid Service: " .. tostring(name))
  107.         end
  108.     end
  109. })
  110.  
  111. local queue_on_teleport = missing("function", queue_on_teleport or (syn and syn.queue_on_teleport) or (fluxus and fluxus.queue_on_teleport))
  112.  
  113. local Players = Services.Players
  114. local RunService = Services.RunService
  115. local UserInputService = Services.UserInputService
  116. local TweenService = Services.TweenService
  117. local CoreGui = Services.CoreGui
  118. local LocalPlayer = Players.LocalPlayer
  119.  
  120. if getgenv().walkflingisenabled then
  121.     getgenv().walkflingisenabled = false
  122.     task.wait(0.2)
  123. end
  124.  
  125. local function GetGuiParent()
  126.     if get_hidden_gui then return get_hidden_gui() end
  127.     if gethui then return gethui() end
  128.     if CoreGui then return CoreGui end
  129.     return LocalPlayer:WaitForChild("PlayerGui")
  130. end
  131.  
  132. local OldGui = GetGuiParent():FindFirstChild("UniversalWalkFling")
  133. if OldGui then OldGui:Destroy() end
  134.  
  135. getgenv().walkflingisenabled = false
  136.  
  137. local CurrentStrength = 10000 --defailt: 10000
  138. local NoclipConnection = nil
  139. local DiedConnection = nil
  140.  
  141. local ScreenGui = Instance.new("ScreenGui")
  142. local MainFrame = Instance.new("Frame")
  143. local TitleLabel = Instance.new("TextLabel")
  144. local CloseButton = Instance.new("TextButton")
  145. local ToggleButton = Instance.new("TextButton")
  146. local InputBox = Instance.new("TextBox")
  147.  
  148. ScreenGui.Name = "UniversalWalkFling"
  149. ScreenGui.Parent = GetGuiParent()
  150. ScreenGui.ResetOnSpawn = false
  151. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  152.  
  153. MainFrame.Name = "MainFrame"
  154. MainFrame.Parent = ScreenGui
  155. MainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  156. MainFrame.BorderSizePixel = 0
  157. MainFrame.Position = UDim2.new(0.5, -110, 0.5, -80)
  158. MainFrame.Size = UDim2.new(0, 220, 0, 160)
  159. MainFrame.Active = true
  160.  
  161. TitleLabel.Name = "TitleLabel"
  162. TitleLabel.Parent = MainFrame
  163. TitleLabel.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  164. TitleLabel.Size = UDim2.new(1, -30, 0, 30)
  165. TitleLabel.Font = Enum.Font.GothamBold
  166. TitleLabel.Text = "WalkFling Panel"
  167. TitleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  168. TitleLabel.TextSize = 14
  169.  
  170. CloseButton.Name = "CloseButton"
  171. CloseButton.Parent = MainFrame
  172. CloseButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
  173. CloseButton.BorderSizePixel = 0
  174. CloseButton.Position = UDim2.new(1, -30, 0, 0)
  175. CloseButton.Size = UDim2.new(0, 30, 0, 30)
  176. CloseButton.Font = Enum.Font.GothamBold
  177. CloseButton.Text = "X"
  178. CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  179. CloseButton.TextSize = 14
  180.  
  181. InputBox.Name = "InputBox"
  182. InputBox.Parent = MainFrame
  183. InputBox.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  184. InputBox.BorderSizePixel = 0
  185. InputBox.Position = UDim2.new(0.1, 0, 0.3, 0)
  186. InputBox.Size = UDim2.new(0.8, 0, 0, 35)
  187. InputBox.Font = Enum.Font.Gotham
  188. InputBox.PlaceholderText = "Enter Strength Number"
  189. InputBox.Text = tostring(CurrentStrength)
  190. InputBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  191. InputBox.TextSize = 12
  192. InputBox.ClearTextOnFocus = false
  193.  
  194. ToggleButton.Name = "ToggleButton"
  195. ToggleButton.Parent = MainFrame
  196. ToggleButton.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
  197. ToggleButton.BorderSizePixel = 0
  198. ToggleButton.Position = UDim2.new(0.1, 0, 0.65, 0)
  199. ToggleButton.Size = UDim2.new(0.8, 0, 0, 35)
  200. ToggleButton.Font = Enum.Font.GothamSemibold
  201. ToggleButton.Text = "Enable"
  202. ToggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  203. ToggleButton.TextSize = 14
  204.  
  205. local function dragGUI(gui)
  206.     task.spawn(function()
  207.         local dragging
  208.         local dragInput
  209.         local dragStart = Vector3.new(0,0,0)
  210.         local startPos
  211.         local function update(input)
  212.             local delta = input.Position - dragStart
  213.             local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  214.             TweenService:Create(gui, TweenInfo.new(.20), {Position = Position}):Play()
  215.         end
  216.         gui.InputBegan:Connect(function(input)
  217.             if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  218.                 dragging = true
  219.                 dragStart = input.Position
  220.                 startPos = gui.Position
  221.                 input.Changed:Connect(function()
  222.                     if input.UserInputState == Enum.UserInputState.End then
  223.                         dragging = false
  224.                     end
  225.                 end)
  226.             end
  227.         end)
  228.         gui.InputChanged:Connect(function(input)
  229.             if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  230.                 dragInput = input
  231.             end
  232.         end)
  233.         UserInputService.InputChanged:Connect(function(input)
  234.             if input == dragInput and dragging then
  235.                 update(input)
  236.             end
  237.         end)
  238.     end)
  239. end
  240.  
  241. dragGUI(MainFrame)
  242.  
  243. local function ParseStrength(text)
  244.     if typeof(text) ~= "string" then return 10000 end
  245.     if text == "" then return 10000 end
  246.     local low = text:lower()
  247.     if low:find("inf") or low:find("huge") then return math.huge end
  248.     if low:find("random") then return math.random(10000, 1000000) end
  249.     if low:find("nan") then return 0/0 end
  250.     return tonumber(text) or CurrentStrength
  251. end
  252.  
  253. local function GetRoot(char)
  254.     return char:FindFirstChild("HumanoidRootPart") or char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso")
  255. end
  256.  
  257. local function ModifyPhysics(char, density)
  258.     if not char then return end
  259.     pcall(function()
  260.         for _, v in pairs(char:GetDescendants()) do
  261.             if v:IsA("BasePart") then
  262.                 SafeSetProperty(v, "CustomPhysicalProperties", PhysicalProperties.new(density, 0.3, 0.5))
  263.             end
  264.         end
  265.     end)
  266. end
  267.  
  268. local function BreakVelocity()
  269.     local char = LocalPlayer.Character
  270.     if not char then return end
  271.     local Stop = false
  272.     task.delay(1, function() Stop = true end)
  273.     task.spawn(function()
  274.         while not Stop do
  275.             for _, v in pairs(char:GetDescendants()) do
  276.                 if v:IsA("BasePart") then
  277.                     v.Velocity = Vector3.new(0, 0, 0)
  278.                     v.RotVelocity = Vector3.new(0, 0, 0)
  279.                 end
  280.             end
  281.             task.wait()
  282.         end
  283.     end)
  284. end
  285.  
  286. InputBox:GetPropertyChangedSignal("Text"):Connect(function()
  287.     CurrentStrength = ParseStrength(InputBox.Text)
  288. end)
  289.  
  290. local StopLoop
  291.  
  292. StopLoop = newcclosure(function()
  293.     getgenv().walkflingisenabled = false
  294.     ToggleButton.Text = "Enable"
  295.     ToggleButton.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
  296.    
  297.     if NoclipConnection then NoclipConnection:Disconnect() NoclipConnection = nil end
  298.     if DiedConnection then DiedConnection:Disconnect() DiedConnection = nil end
  299.    
  300.     pcall(function()
  301.         local char = LocalPlayer.Character
  302.         if char then
  303.             BreakVelocity()
  304.             ModifyPhysics(char, 0.7)
  305.         end
  306.     end)
  307. end)
  308.  
  309. local StartLoop = newcclosure(function()
  310.     if getgenv().walkflingisenabled then return end
  311.    
  312.     local char = LocalPlayer.Character
  313.     if not char then return end
  314.     local hum = char:FindFirstChildWhichIsA("Humanoid")
  315.     if not hum then return end
  316.    
  317.     getgenv().walkflingisenabled = true
  318.    
  319.     if DiedConnection then DiedConnection:Disconnect() end
  320.     DiedConnection = hum.Died:Connect(StopLoop)
  321.    
  322.     CurrentStrength = ParseStrength(InputBox.Text)
  323.     ToggleButton.Text = "Enabled"
  324.     ToggleButton.BackgroundColor3 = Color3.fromRGB(50, 180, 50)
  325.     ModifyPhysics(char, 100)
  326.    
  327.     local movel = 0.1
  328.    
  329.     NoclipConnection = RunService.Stepped:Connect(function()
  330.         if not getgenv().walkflingisenabled then return end
  331.         pcall(function()
  332.             local c = LocalPlayer.Character
  333.             if c then
  334.                 for _, v in pairs(c:GetDescendants()) do
  335.                     if v:IsA("BasePart") and v.CanCollide then v.CanCollide = false end
  336.                 end
  337.             end
  338.         end)
  339.     end)
  340.    
  341.     task.spawn(function()
  342.         while getgenv().walkflingisenabled do
  343.             local success, err = pcall(function()
  344.                 RunService.Heartbeat:Wait()
  345.                 local c = LocalPlayer.Character
  346.                 local root = c and GetRoot(c)
  347.                
  348.                 while not (c and c.Parent and root and root.Parent) and getgenv().walkflingisenabled do
  349.                     RunService.Heartbeat:Wait()
  350.                     c = LocalPlayer.Character
  351.                     root = c and GetRoot(c)
  352.                 end
  353.                 if not getgenv().walkflingisenabled then return end
  354.  
  355.                 local vel = root.Velocity
  356.                 root.Velocity = vel * CurrentStrength + Vector3.new(0, CurrentStrength, 0)
  357.                
  358.                 RunService.RenderStepped:Wait()
  359.                 if not getgenv().walkflingisenabled then return end
  360.                 if c and c.Parent and root and root.Parent then
  361.                     root.Velocity = vel
  362.                 end
  363.                
  364.                 RunService.Stepped:Wait()
  365.                 if not getgenv().walkflingisenabled then return end
  366.                 if c and c.Parent and root and root.Parent then
  367.                     root.Velocity = vel + Vector3.new(0, movel, 0)
  368.                     movel = movel * -1
  369.                 end
  370.             end)
  371.             if not success and getgenv().walkflingisenabled then
  372.                  print("Loop Error: " .. tostring(err))
  373.             end
  374.         end
  375.     end)
  376. end)
  377.  
  378. ToggleButton.MouseButton1Click:Connect(newcclosure(function()
  379.     if getgenv().walkflingisenabled then
  380.         StopLoop()
  381.     else
  382.         StartLoop()
  383.     end
  384. end))
  385.  
  386. CloseButton.MouseButton1Click:Connect(newcclosure(function()
  387.     StopLoop()
  388.     ScreenGui:Destroy()
  389. end))
  390.  
  391. if queue_on_teleport then
  392.     LocalPlayer.OnTeleport:Connect(function(State)
  393.         queue_on_teleport("loadstring(game:HttpGet('https://pastebin.com/raw/rEb9BcVi'))()")
  394.     end)
  395. end
Advertisement
Add Comment
Please, Sign In to add comment