-- Float Hub V8: RGB Total (Bordas, Toggles e Interface) -- Criado pelo Fred - O rei do estilo psicodélico! local Players = game:GetService("Players") local RunService = game:GetService("RunService") local TweenService = game:GetService("TweenService") local LP = Players.LocalPlayer local CoreGui = game:GetService("CoreGui") if CoreGui:FindFirstChild("FloatHub") then CoreGui.FloatHub:Destroy() end local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "FloatHub" ScreenGui.Parent = CoreGui ScreenGui.ResetOnSpawn = false -- Variável de controle para trancar o arrasto local togglesLocked = false -- Listas para armazenar os componentes que vão piscar em RGB local rgbStrokes = {} local rgbToggles = {} -- --- FUNÇÃO AUXILIAR PARA BOTÕES FLUTUANTES QUADRADOS COM BORDA --- local function CreateFloatingBtn(text, pos, size) local Btn = Instance.new("TextButton") Btn.Parent = ScreenGui Btn.BackgroundColor3 = Color3.fromRGB(20, 20, 20) -- Fundo escuro para destacar a borda Btn.Position = pos Btn.Size = size Btn.Text = text Btn.TextSize = 25 Btn.TextColor3 = Color3.new(1, 1, 1) Btn.Active = true Btn.Draggable = true -- Adiciona a borda (UIStroke) quadrada local Stroke = Instance.new("UIStroke") Stroke.Thickness = 2 Stroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border Stroke.Parent = Btn table.insert(rgbStrokes, Stroke) -- Adiciona na lista RGB -- Bloqueia o arrasto se a trava estiver ativada Btn.Changed:Connect(function(prop) if prop == "Draggable" and togglesLocked and Btn.Draggable then Btn.Draggable = false end end) return Btn end -- --- BOTÕES FLUTUANTES QUADRADOS --- local OpenBtn = CreateFloatingBtn("🌌", UDim2.new(0.05, 0, 0.1, 0), UDim2.new(0, 55, 0, 55)) local UpBtn = CreateFloatingBtn("🔼", UDim2.new(0.05, 0, 0.2, 0), UDim2.new(0, 50, 0, 50)) local DownBtn = CreateFloatingBtn("🔽", UDim2.new(0.05, 0, 0.28, 0), UDim2.new(0, 50, 0, 50)) -- --- PAINEL PRINCIPAL --- local MainFrame = Instance.new("Frame") MainFrame.Parent = ScreenGui MainFrame.BackgroundColor3 = Color3.fromRGB(15, 15, 15) MainFrame.Position = UDim2.new(0.5, -100, 0.5, -110) MainFrame.Size = UDim2.new(0, 200, 0, 220) MainFrame.Visible = false MainFrame.Active = true MainFrame.Draggable = true Instance.new("UICorner", MainFrame).CornerRadius = UDim.new(0, 15) -- Borda da Interface Principal local MainStroke = Instance.new("UIStroke", MainFrame) MainStroke.Thickness = 2.5 table.insert(rgbStrokes, MainStroke) -- Adiciona na lista RGB local Title = Instance.new("TextLabel") Title.Parent = MainFrame Title.BackgroundTransparency = 1 Title.Size = UDim2.new(1, 0, 0, 45) Title.Text = "FLOAT HUB V8" Title.Font = Enum.Font.GothamBold Title.TextSize = 20 -- --- FUNÇÃO PARA CRIAR SWITCHES NA INTERFACE --- local function CreateInterfaceSwitch(labelName, yPos) local Label = Instance.new("TextLabel", MainFrame) Label.Text = labelName Label.Position = UDim2.new(0, 0, 0, yPos) Label.Size = UDim2.new(1, 0, 0, 20) Label.TextColor3 = Color3.new(1, 1, 1) Label.Font = Enum.Font.SourceSansBold Label.BackgroundTransparency = 1 local BG = Instance.new("TextButton", MainFrame) BG.BackgroundColor3 = Color3.fromRGB(60, 60, 60) BG.Position = UDim2.new(0.5, -35, 0, yPos + 22) BG.Size = UDim2.new(0, 70, 0, 32) BG.Text = "" Instance.new("UICorner", BG).CornerRadius = UDim.new(1, 0) local B = Instance.new("Frame", BG) B.BackgroundColor3 = Color3.new(1, 1, 1) B.Position = UDim2.new(0, 5, 0.5, -11) B.Size = UDim2.new(0, 22, 0, 22) Instance.new("UICorner", B).CornerRadius = UDim.new(1, 0) return BG, B end local AirWalkSwitch, AirWalkBall = CreateInterfaceSwitch("AIR WALK", 50) local LockSwitch, LockBall = CreateInterfaceSwitch("TRAVAR BOTÕES", 130) -- --- PLATAFORMA DE VIDRO --- local platform = Instance.new("Part") platform.Name = "FredFloatPart" platform.Anchored = true platform.Size = Vector3.new(3, 0.2, 3) platform.Material = Enum.Material.Glass platform.Transparency = 0.5 platform.CanCollide = false platform.Parent = workspace local airWalkOn = false local platformY = 0 local adjustSpeed = 1.5 -- --- LOOP DE SINCRO-FÍSICA E ARCO-ÍRIS GLOBAL --- RunService.RenderStepped:Connect(function() -- Geração da cor arco-íris com base no tempo local hue = tick() % 5 / 5 local rainbowColor = Color3.fromHSV(hue, 1, 1) -- 1. Atualiza Textos e Plataforma Title.TextColor3 = rainbowColor platform.Color = rainbowColor -- 2. Atualiza todas as Bordas do Script (Interface e Botões Quadrados) for _, stroke in pairs(rgbStrokes) do stroke.Color = rainbowColor end -- 3. Atualiza a cor de fundo dos Toggles apenas quando estão ATIVADOS if airWalkOn then AirWalkSwitch.BackgroundColor3 = rainbowColor else AirWalkSwitch.BackgroundColor3 = Color3.fromRGB(60, 60, 60) end if togglesLocked then LockSwitch.BackgroundColor3 = rainbowColor else LockSwitch.BackgroundColor3 = Color3.fromRGB(60, 60, 60) end -- Lógica Física do AirWalk if airWalkOn and LP.Character and LP.Character:FindFirstChild("HumanoidRootPart") then local hrp = LP.Character.HumanoidRootPart if hrp.Velocity.Y > 10 then platformY = hrp.Position.Y - 3.2 end platform.Position = Vector3.new(hrp.Position.X, platformY, hrp.Position.Z) platform.CanCollide = true else platform.CanCollide = false platform.Position = Vector3.new(0, -500, 0) end end) -- --- LÓGICA DO SCRIPT --- -- Botão de Ligar/Desligar AirWalk AirWalkSwitch.MouseButton1Click:Connect(function() if LP.Character and LP.Character:FindFirstChild("HumanoidRootPart") then airWalkOn = not airWalkOn platformY = LP.Character.HumanoidRootPart.Position.Y - 3.2 local targetPos = airWalkOn and UDim2.new(0, 43, 0.5, -11) or UDim2.new(0, 5, 0.5, -11) TweenService:Create(AirWalkBall, TweenInfo.new(0.2), {Position = targetPos}):Play() end end) -- Botão de Bloquear/Desbloquear Movimento da UI LockSwitch.MouseButton1Click:Connect(function() togglesLocked = not togglesLocked local targetPos = togglesLocked and UDim2.new(0, 43, 0.5, -11) or UDim2.new(0, 5, 0.5, -11) TweenService:Create(LockBall, TweenInfo.new(0.2), {Position = targetPos}):Play() -- Aplica a trava ou destrava nos botões flutuantes quadrados OpenBtn.Draggable = not togglesLocked UpBtn.Draggable = not togglesLocked DownBtn.Draggable = not togglesLocked end) -- Botões de Ajuste Manual de Altura (🔼 e 🔽) UpBtn.MouseButton1Click:Connect(function() if airWalkOn then platformY = platformY + adjustSpeed end end) DownBtn.MouseButton1Click:Connect(function() if airWalkOn then platformY = platformY - adjustSpeed end end) -- Abre/Fecha Menu Principal OpenBtn.MouseButton1Click:Connect(function() MainFrame.Visible = not MainFrame.Visible end)