local FluxRB = loadstring(game:HttpGet("https://pastebin.com/raw/weJFYjM5"))() local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local VirtualUser = game:GetService("VirtualUser") local TeleportService = game:GetService("TeleportService") local player = Players.LocalPlayer -- UI local UI = FluxRB:Init({ Theme = "Premium" }) FluxRB:Notify("Flux Hub", "Loaded Successfully", 5) -- STATE local State = { Speed = 16, Fly = false, Noclip = false, InfJump = false, AutoClick = false } local ClickSpeed = 0.05 local FlySpeed = 60 -------------------------------------------------- -- UPDATE TAB -------------------------------------------------- local Updates = UI:CreateTab("Updates") Updates:AddInfo("FluxRB UI Library v1.5") Updates:AddInfo("Stable Fly System") Updates:AddInfo("Toggleable AutoClick") Updates:AddInfo("Anti AFK Enabled") -------------------------------------------------- -- MOVEMENT TAB -------------------------------------------------- local Movement = UI:CreateTab("Movement") Movement:AddSlider("WalkSpeed",16,500,16,function(v) State.Speed = v end) Movement:AddToggle("Infinite Jump",false,function(v) State.InfJump = v end) Movement:AddToggle("Noclip",false,function(v) State.Noclip = v end) Movement:AddSlider("Fly Speed",20,200,60,function(v) FlySpeed = v end) -------------------------------------------------- -- FLY SYSTEM -------------------------------------------------- local flyConnection Movement:AddToggle("Fly Mode",false,function(v) State.Fly = v local char = player.Character if not char then return end local hrp = char:FindFirstChild("HumanoidRootPart") if not hrp then return end if v then local bv = Instance.new("BodyVelocity") bv.Name = "FluxFly" bv.MaxForce = Vector3.new(1e5,1e5,1e5) bv.Velocity = Vector3.zero bv.Parent = hrp flyConnection = RunService.RenderStepped:Connect(function() if not State.Fly then return end local cam = workspace.CurrentCamera local move = Vector3.zero if UserInputService:IsKeyDown(Enum.KeyCode.W) then move += cam.CFrame.LookVector end if UserInputService:IsKeyDown(Enum.KeyCode.S) then move -= cam.CFrame.LookVector end if UserInputService:IsKeyDown(Enum.KeyCode.A) then move -= cam.CFrame.RightVector end if UserInputService:IsKeyDown(Enum.KeyCode.D) then move += cam.CFrame.RightVector end if UserInputService:IsKeyDown(Enum.KeyCode.Space) then move += Vector3.new(0,1,0) end if UserInputService:IsKeyDown(Enum.KeyCode.LeftControl) then move -= Vector3.new(0,1,0) end if hrp:FindFirstChild("FluxFly") then hrp.FluxFly.Velocity = move * FlySpeed end end) else if hrp:FindFirstChild("FluxFly") then hrp.FluxFly:Destroy() end if flyConnection then flyConnection:Disconnect() end end end) -------------------------------------------------- -- AUTOMATION TAB -------------------------------------------------- local Auto = UI:CreateTab("Automation") Auto:AddInfo("Automation Systems") Auto:AddSlider("Click Speed",0.01,0.2,0.05,function(v) ClickSpeed = v end) Auto:AddToggle("Auto Click",false,function(v) State.AutoClick = v end) -------------------------------------------------- -- AUTO CLICK LOOP -------------------------------------------------- task.spawn(function() while true do if State.AutoClick then VirtualUser:ClickButton1(Vector2.new()) end task.wait(ClickSpeed) end end) -------------------------------------------------- -- ADMIN TAB -------------------------------------------------- local Admin = UI:CreateTab("Admin") Admin:AddButton("Infinite Yield",function() loadstring(game:HttpGet( "https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source" ))() end) Admin:AddButton("Rejoin Server",function() TeleportService:TeleportToPlaceInstance( game.PlaceId, game.JobId, player ) end) Admin:AddButton("Server Hop",function() TeleportService:Teleport(game.PlaceId) end) -------------------------------------------------- -- LINKS TAB -------------------------------------------------- local Links = UI:CreateTab("Links") Links:AddSocial("Website","kreadzs.github.io/FLUX-HUB") Links:AddSocial("Discord","discord.gg/yourserver") -------------------------------------------------- -- SYSTEM LOOP -------------------------------------------------- RunService.Stepped:Connect(function() local char = player.Character if not char then return end local hum = char:FindFirstChildOfClass("Humanoid") if hum then hum.WalkSpeed = State.Speed end if State.Noclip then for _,v in pairs(char:GetDescendants()) do if v:IsA("BasePart") then v.CanCollide = false end end end end) -------------------------------------------------- -- INFINITE JUMP -------------------------------------------------- UserInputService.JumpRequest:Connect(function() if State.InfJump then local hum = player.Character and player.Character:FindFirstChildOfClass("Humanoid") if hum then hum:ChangeState(Enum.HumanoidStateType.Jumping) end end end) -------------------------------------------------- -- ANTI AFK -------------------------------------------------- player.Idled:Connect(function() VirtualUser:Button2Down(Vector2.new()) task.wait(1) VirtualUser:Button2Up(Vector2.new()) end)