-- ========================================== -- SCRIPT HUB COMPLETO COM GUI + CALCULADORA -- ========================================== local CoreGui = game:GetService("CoreGui") local Players = game:GetService("Players") local RunService = game:GetService("RunService") local LocalPlayer = Players.LocalPlayer -- Remover GUI antiga caso exista if CoreGui:FindFirstChild("MainScreenGui") then CoreGui.MainScreenGui:Destroy() end -- ScreenGui Principal local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "MainScreenGui" ScreenGui.Parent = CoreGui ScreenGui.ResetOnSpawn = false -- Variáveis de Estado local noclip = false RunService.Stepped:Connect(function() if noclip and LocalPlayer.Character then for _, part in pairs(LocalPlayer.Character:GetDescendants()) do if part:IsA("BasePart") then part.CanCollide = false end end end end) -- ------------------------------------------ -- 1. JANELA PRINCIPAL (CHEATS / FUNÇÕES) -- ------------------------------------------ local MainFrame = Instance.new("Frame") MainFrame.Name = "MainFrame" MainFrame.Size = UDim2.new(0, 320, 0, 420) MainFrame.Position = UDim2.new(0.05, 0, 0.2, 0) MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 35) MainFrame.BorderSizePixel = 0 MainFrame.Active = true MainFrame.Draggable = true MainFrame.Parent = ScreenGui local MainTitle = Instance.new("TextLabel") MainTitle.Size = UDim2.new(1, 0, 0, 35) MainTitle.BackgroundColor3 = Color3.fromRGB(20, 20, 25) MainTitle.Text = " FUNÇÕES JOGOS - HUB" MainTitle.TextColor3 = Color3.fromRGB(255, 255, 255) MainTitle.TextXAlignment = Enum.TextXAlignment.Left MainTitle.Font = Enum.Font.SourceSansBold MainTitle.TextSize = 16 MainTitle.Parent = MainFrame -- Criador de Botões Genérico local function createButton(parent, text, pos, callback) local btn = Instance.new("TextButton") btn.Size = UDim2.new(0.9, 0, 0, 32) btn.Position = pos btn.BackgroundColor3 = Color3.fromRGB(45, 45, 55) btn.Text = text btn.TextColor3 = Color3.fromRGB(255, 255, 255) btn.Font = Enum.Font.SourceSans btn.TextSize = 14 btn.Parent = parent local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 6) corner.Parent = btn btn.MouseButton1Click:Connect(callback) return btn end -- Criador de Inputs Genérico local function createInput(parent, placeholder, pos, callback) local box = Instance.new("TextBox") box.Size = UDim2.new(0.9, 0, 0, 32) box.Position = pos box.BackgroundColor3 = Color3.fromRGB(20, 20, 25) box.PlaceholderText = placeholder box.Text = "" box.TextColor3 = Color3.fromRGB(255, 255, 255) box.Font = Enum.Font.SourceSans box.TextSize = 14 box.Parent = parent local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 6) corner.Parent = box box.FocusLost:Connect(function(enterPressed) if enterPressed then callback(box.Text) end end) return box end -- Botões do Main Frame createButton(MainFrame, "Toggle Noclip (ON/OFF)", UDim2.new(0.05, 0, 0.12, 0), function() noclip = not noclip print("Noclip: " .. tostring(noclip)) end) createInput(MainFrame, "WalkSpeed (Ex: 50)", UDim2.new(0.05, 0, 0.22, 0), function(val) local hum = LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") if hum then hum.WalkSpeed = tonumber(val) or 16 end end) createInput(MainFrame, "JumpPower (Ex: 120)", UDim2.new(0.05, 0, 0.32, 0), function(val) local hum = LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") if hum then hum.UseJumpPower = true hum.JumpPower = tonumber(val) or 50 end end) createInput(MainFrame, "Camera Zoom Max (Ex: 500)", UDim2.new(0.05, 0, 0.42, 0), function(val) LocalPlayer.CameraMaxZoomDistance = tonumber(val) or 128 end) createInput(MainFrame, "Teleport p/ Jogador (Nome)", UDim2.new(0.05, 0, 0.52, 0), function(name) local target = Players:FindFirstChild(name) if target and target.Character and target.Character:FindFirstChild("HumanoidRootPart") then if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then LocalPlayer.Character.HumanoidRootPart.CFrame = target.Character.HumanoidRootPart.CFrame end end end) -- ------------------------------------------ -- 2. JANELA DA CALCULADORA (Base da Imagem) -- ------------------------------------------ local CalcFrame = Instance.new("Frame") CalcFrame.Name = "CalcFrame" CalcFrame.Size = UDim2.new(0, 260, 0, 360) CalcFrame.Position = UDim2.new(0.32, 0, 0.2, 0) CalcFrame.BackgroundColor3 = Color3.fromRGB(245, 245, 250) CalcFrame.BorderSizePixel = 0 CalcFrame.Active = true CalcFrame.Draggable = true CalcFrame.Parent = ScreenGui local CalcCorner = Instance.new("UICorner") CalcCorner.CornerRadius = UDim.new(0, 12) CalcCorner.Parent = CalcFrame -- Visor da Calculadora local Visor = Instance.new("TextLabel") Visor.Size = UDim2.new(0.9, 0, 0, 50) Visor.Position = UDim2.new(0.05, 0, 0.04, 0) Visor.BackgroundColor3 = Color3.fromRGB(235, 235, 240) Visor.Text = "" Visor.TextColor3 = Color3.fromRGB(30, 30, 35) Visor.TextSize = 22 Visor.Font = Enum.Font.SourceSansBold Visor.TextXAlignment = Enum.TextXAlignment.Right Visor.Parent = CalcFrame local VisorCorner = Instance.new("UICorner") VisorCorner.CornerRadius = UDim.new(0, 8) VisorCorner.Parent = Visor -- Lógica do Visor local expressao = "" local function updateVisor(txt) expressao = txt Visor.Text = expressao end local function evalCalc() local exp_proc = string.gsub(expressao, "×", "*") exp_proc = string.gsub(exp_proc, "÷", "/") exp_proc = string.gsub(exp_proc, ",", ".") local func, err = loadstring("return " .. exp_proc) if func then local ok, res = pcall(func) if ok then updateVisor(tostring(res)) return end end updateVisor("Erro") end -- Botões do Grid da Calculadora (4x5) local calcButtons = { {"AC", "()", "%", "÷"}, {"7", "8", "9", "×"}, {"4", "5", "6", "-"}, {"1", "2", "3", "+"}, {"0", ",", "⌫", "="} } local startX, startY = 0.05, 0.22 local btnWidth, btnHeight = 0.20, 0.13 local gapX, gapY = 0.03, 0.02 for r, row in ipairs(calcButtons) do for c, char in ipairs(row) do local xPos = startX + (c - 1) * (btnWidth + gapX) local yPos = startY + (r - 1) * (btnHeight + gapY) local btn = Instance.new("TextButton") btn.Size = UDim2.new(btnWidth, 0, btnHeight, 0) btn.Position = UDim2.new(xPos, 0, yPos, 0) btn.Text = char btn.TextSize = 18 btn.Font = Enum.Font.SourceSansBold btn.Parent = CalcFrame local cCorner = Instance.new("UICorner") cCorner.CornerRadius = UDim.new(1, 0) -- Redondo cCorner.Parent = btn -- Estilização baseada nas cores da imagem if char == "=" then btn.BackgroundColor3 = Color3.fromRGB(105, 80, 125) btn.TextColor3 = Color3.fromRGB(255, 255, 255) elseif char == "AC" or char == "()" or char == "%" or char == "÷" or char == "×" or char == "-" or char == "+" then btn.BackgroundColor3 = Color3.fromRGB(215, 225, 250) btn.TextColor3 = Color3.fromRGB(30, 60, 120) else btn.BackgroundColor3 = Color3.fromRGB(230, 230, 235) btn.TextColor3 = Color3.fromRGB(30, 30, 30) end -- Ações dos Botões da Calculadora btn.MouseButton1Click:Connect(function() if char == "AC" then updateVisor("") elseif char == "⌫" then updateVisor(string.sub(expressao, 1, -2)) elseif char == "=" then evalCalc() else updateVisor(expressao .. char) end end) end end -- Botão para alternar exibição da Calculadora no MainFrame createButton(MainFrame, "Ocultar / Mostrar Calculadora", UDim2.new(0.05, 0, 0.85, 0), function() CalcFrame.Visible = not CalcFrame.Visible end)