local Players = game:GetService("Players") local player = Players.LocalPlayer -- wait for safe loading local function getChar() return player.Character or player.CharacterAdded:Wait() end local function getRoot() return getChar():WaitForChild("HumanoidRootPart") end -- ================= UI ================= local gui = Instance.new("ScreenGui") gui.Name = "Gonelek5588Hub" gui.ResetOnSpawn = false gui.Parent = player:WaitForChild("PlayerGui") local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 190, 0, 100) frame.Position = UDim2.new(0, 20, 0.5, -50) frame.BackgroundColor3 = Color3.fromRGB(140, 0, 0) frame.Active = true frame.Draggable = true frame.Parent = gui Instance.new("UICorner", frame) local title = Instance.new("TextLabel") title.Size = UDim2.new(1, 0, 0, 30) title.BackgroundTransparency = 1 title.Text = "Gonelek5588 Hub (Beta)" title.TextColor3 = Color3.fromRGB(255,255,255) title.TextScaled = true title.Parent = frame local button = Instance.new("TextButton") button.Size = UDim2.new(0.9, 0, 0, 40) button.Position = UDim2.new(0.05, 0, 0.45, 0) button.Text = "FLOAT: OFF" button.BackgroundColor3 = Color3.fromRGB(200, 0, 0) button.TextColor3 = Color3.fromRGB(255,255,255) button.Parent = frame Instance.new("UICorner", button) -- ================= FLOAT SYSTEM ================= local floating = false local bp local function enableFloat() local root = getRoot() -- stop weird movement instantly root.AssemblyLinearVelocity = Vector3.zero root.AssemblyAngularVelocity = Vector3.zero bp = Instance.new("BodyPosition") bp.MaxForce = Vector3.new(0, math.huge, 0) -- only vertical control bp.P = 30000 bp.D = 1200 bp.Position = root.Position bp.Parent = root end local function disableFloat() if bp then bp:Destroy() bp = nil end local root = getRoot() root.AssemblyLinearVelocity = Vector3.zero root.AssemblyAngularVelocity = Vector3.zero end button.MouseButton1Click:Connect(function() floating = not floating if floating then button.Text = "FLOAT: ON" enableFloat() else button.Text = "FLOAT: OFF" disableFloat() end end)