menu e script basico
Key RequiredUniversal

menu e script basico

Universal Scriptvanda23773vanda23773 108 views 830 executesUpdated Aug 25, 2026
Unrated
00
Lua Script•628 lines (19181 chars)
-- Script Rayfield com Hacks Básicos para Roblox
-- Coloque este script em um executor compatível com Rayfield

-- Verifica se a Rayfield está carregada
if not game:IsLoaded() then
    game.Loaded:Wait()
end

-- Carrega a Rayfield (certifique-se de ter a biblioteca instalada)
local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()

-- Criando a interface
local Window = Rayfield:CreateWindow({
    Name = "Hacks Básicos v3",
    LoadingTitle = "Carregando Hacks...",
    LoadingSubtitle = "by SeuNome",
    ConfigurationSaving = {
       Enabled = true,
       FolderName = "HacksBasicos",
       FileName = "Config"
    },
    Discord = {
       Enabled = false,
       Invite = "noinvitelink",
       RememberJoins = true
    },
    KeySystem = false,
    KeySettings = {
       Title = "Key System",
       Subtitle = "Digite a key",
       Note = "Sem key necessária",
       FileName = "Key",
       SaveKey = false,
       GrabKeyFromSite = false
    }
})

-- ============================================
-- Variáveis globais
-- ============================================
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local rootPart = character:WaitForChild("HumanoidRootPart")
local runService = game:GetService("RunService")
local userInputService = game:GetService("UserInputService")

-- Atualiza referências quando o personagem renascer
player.CharacterAdded:Connect(function(newChar)
    character = newChar
    humanoid = character:WaitForChild("Humanoid")
    rootPart = character:WaitForChild("HumanoidRootPart")
end)

-- Tabs
local MainTab = Window:CreateTab("Principais", nil)
local VisualsTab = Window:CreateTab("Visuais", nil)
local CombatTab = Window:CreateTab("Combate", nil)
local MiscTab = Window:CreateTab("Misc", nil)
local PlayerTab = Window:CreateTab("Player", nil)

-- ============================================
-- SEÇÃO: MOVIMENTAÇÃO (MainTab)
-- ============================================
local MovementSection = MainTab:CreateSection("Movimentação")

-- FLY
local flyEnabled = false
local flySpeed = 50
local flyConnection = nil

local function startFly()
    if flyConnection then flyConnection:Disconnect() end
    
    flyEnabled = true
    local flyChar = character
    
    flyConnection = runService.Heartbeat:Connect(function()
        if not flyEnabled or not flyChar or not flyChar.Parent then
            return
        end
        
        local root = flyChar:FindFirstChild("HumanoidRootPart")
        local human = flyChar:FindFirstChild("Humanoid")
        
        if not root or not human then return end
        
        human.PlatformStand = true
        root.Velocity = Vector3.new(0, 0, 0)
        root.AssemblyLinearVelocity = Vector3.new(0, 0, 0)
        root.AssemblyAngularVelocity = Vector3.new(0, 0, 0)
        
        local camera = workspace.CurrentCamera
        local moveDirection = Vector3.new()
        
        if userInputService:IsKeyDown(Enum.KeyCode.W) then
            moveDirection = moveDirection + camera.CFrame.LookVector * Vector3.new(1, 0, 1)
        end
        if userInputService:IsKeyDown(Enum.KeyCode.S) then
            moveDirection = moveDirection - camera.CFrame.LookVector * Vector3.new(1, 0, 1)
        end
        if userInputService:IsKeyDown(Enum.KeyCode.A) then
            moveDirection = moveDirection - camera.CFrame.RightVector * Vector3.new(1, 0, 1)
        end
        if userInputService:IsKeyDown(Enum.KeyCode.D) then
            moveDirection = moveDirection + camera.CFrame.RightVector * Vector3.new(1, 0, 1)
        end
        if userInputService:IsKeyDown(Enum.KeyCode.Space) then
            moveDirection = moveDirection + Vector3.new(0, 1, 0)
        end
        if userInputService:IsKeyDown(Enum.KeyCode.LeftShift) then
            moveDirection = moveDirection - Vector3.new(0, 1, 0)
        end
        
        if moveDirection.Magnitude > 0 then
            moveDirection = moveDirection.Unit * flySpeed
            root.AssemblyLinearVelocity = moveDirection
        else
            root.AssemblyLinearVelocity = Vector3.new(0, 0, 0)
        end
        
        root.AssemblyAngularVelocity = Vector3.new(0, 0, 0)
    end)
end

local function stopFly()
    flyEnabled = false
    if flyConnection then
        flyConnection:Disconnect()
        flyConnection = nil
    end
    
    if character and character:FindFirstChild("Humanoid") then
        character.Humanoid.PlatformStand = false
    end
end

-- Noclip
local noclipEnabled = false
local noclipConnection = nil

local function startNoclip()
    noclipEnabled = true
    noclipConnection = runService.Stepped:Connect(function()
        if not noclipEnabled then return end
        for _, part in ipairs(character:GetDescendants()) do
            if part:IsA("BasePart") then
                part.CanCollide = false
            end
        end
    end)
end

local function stopNoclip()
    noclipEnabled = false
    if noclipConnection then
        noclipConnection:Disconnect()
        noclipConnection = nil
    end
    for _, part in ipairs(character:GetDescendants()) do
        if part:IsA("BasePart") then
            part.CanCollide = true
        end
    end
end

-- Fly Toggle
MainTab:CreateToggle({
    Name = "Fly",
    CurrentValue = false,
    Flag = "FlyToggle",
    Callback = function(value)
        if value then
            startFly()
        else
            stopFly()
        end
    end
})

-- Fly Speed Slider
MainTab:CreateSlider({
    Name = "Velocidade do Fly",
    Range = {10, 200},
    Increment = 5,
    Suffix = "Studs/s",
    CurrentValue = 50,
    Flag = "FlySpeed",
    Callback = function(value)
        flySpeed = value
    end
})

-- Noclip Toggle
MainTab:CreateToggle({
    Name = "Noclip",
    CurrentValue = false,
    Flag = "NoclipToggle",
    Callback = function(value)
        if value then
            startNoclip()
        else
            stopNoclip()
        end
    end
})

-- WalkSpeed Slider
MainTab:CreateSlider({
    Name = "Velocidade Andar",
    Range = {16, 100},
    Increment = 1,
    Suffix = "Studs/s",
    CurrentValue = 16,
    Flag = "WalkSpeed",
    Callback = function(value)
        humanoid.WalkSpeed = value
    end
})

-- JumpPower Slider
MainTab:CreateSlider({
    Name = "Altura do Pulo",
    Range = {50, 200},
    Increment = 5,
    Suffix = "%",
    CurrentValue = 100,
    Flag = "JumpPower",
    Callback = function(value)
        humanoid.JumpPower = value
    end
})

-- ============================================
-- SEÇÃO: PLAYER (PlayerTab)
-- ============================================
local PlayerSection = PlayerTab:CreateSection("Modificações Player")

-- God Mode
local godModeEnabled = false
PlayerTab:CreateToggle({
    Name = "God Mode (Imortal)",
    CurrentValue = false,
    Flag = "GodMode",
    Callback = function(value)
        godModeEnabled = value
        if value then
            humanoid.MaxHealth = 9e9
            humanoid.Health = 9e9
        else
            humanoid.MaxHealth = 100
            humanoid.Health = 100
        end
    end
})

-- Infinite Jump
local infiniteJumpEnabled = false
local infiniteJumpConnection = nil

PlayerTab:CreateToggle({
    Name = "Pulo Infinito",
    CurrentValue = false,
    Flag = "InfiniteJump",
    Callback = function(value)
        infiniteJumpEnabled = value
        if value then
            infiniteJumpConnection = userInputService.JumpRequest:Connect(function()
                if infiniteJumpEnabled then
                    humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
                end
            end)
        else
            if infiniteJumpConnection then
                infiniteJumpConnection:Disconnect()
                infiniteJumpConnection = nil
            end
        end
    end
})

-- ============================================
-- SEÇÃO: VISUAIS (VisualsTab)
-- ============================================
-- ESP
local espEnabled = false
local espObjects = {}
local espConnections = {}

local function createESP(targetPlayer)
    if not targetPlayer or not targetPlayer.Character or targetPlayer == player then return end
    
    local char = targetPlayer.Character
    local root = char:FindFirstChild("HumanoidRootPart")
    if not root then return end
    
    local box = Instance.new("BoxHandleAdornment")
    box.Adornee = root
    box.Size = Vector3.new(4, 6, 2)
    box.Color3 = targetPlayer.TeamColor and targetPlayer.TeamColor.Color or Color3.fromRGB(255, 0, 0)
    box.Transparency = 0.3
    box.AlwaysOnTop = true
    box.ZIndex = 0
    box.Parent = char
    
    local nameTag = Instance.new("BillboardGui")
    nameTag.Adornee = root
    nameTag.Size = UDim2.new(0, 120, 0, 30)
    nameTag.StudsOffset = Vector3.new(0, 4, 0)
    
    local label = Instance.new("TextLabel")
    label.Size = UDim2.new(1, 0, 1, 0)
    label.BackgroundTransparency = 1
    label.Text = targetPlayer.Name
    label.TextColor3 = Color3.fromRGB(255, 255, 255)
    label.TextScaled = true
    label.Font = Enum.Font.GothamBold
    label.Parent = nameTag
    
    local healthBar = Instance.new("BillboardGui")
    healthBar.Adornee = root
    healthBar.Size = UDim2.new(0, 50, 0, 5)
    healthBar.StudsOffset = Vector3.new(0, 3, 0)
    
    local healthFrame = Instance.new("Frame")
    healthFrame.Size = UDim2.new(1, 0, 1, 0)
    healthFrame.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
    healthFrame.BorderSizePixel = 0
    healthFrame.Parent = healthBar
    
    nameTag.Parent = char
    healthBar.Parent = char
    
    table.insert(espObjects, box)
    table.insert(espObjects, nameTag)
    table.insert(espObjects, healthBar)
    
    local healthConnection = runService.Heartbeat:Connect(function()
        if not targetPlayer or not targetPlayer.Character then return end
        local human = targetPlayer.Character:FindFirstChild("Humanoid")
        if human and healthFrame then
            local healthPercent = human.Health / human.MaxHealth
            healthFrame.Size = UDim2.new(healthPercent, 0, 1, 0)
            healthFrame.BackgroundColor3 = Color3.fromRGB(
                255 * (1 - healthPercent),
                255 * healthPercent,
                0
            )
        end
    end)
    table.insert(espConnections, healthConnection)
end

local function removeESP()
    for _, obj in ipairs(espObjects) do
        if obj and obj.Parent then obj:Destroy() end
    end
    for _, conn in ipairs(espConnections) do
        if conn then conn:Disconnect() end
    end
    espObjects = {}
    espConnections = {}
end

VisualsTab:CreateToggle({
    Name = "ESP (Box + Name + Health)",
    CurrentValue = false,
    Flag = "ESPToggle",
    Callback = function(value)
        if value then
            espEnabled = true
            for _, plr in ipairs(game.Players:GetPlayers()) do
                if plr ~= player then
                    createESP(plr)
                end
            end
            game.Players.PlayerAdded:Connect(function(plr)
                if espEnabled then
                    createESP(plr)
                end
            end)
        else
            espEnabled = false
            removeESP()
        end
    end
})

-- Full Bright
local fullBrightEnabled = false
VisualsTab:CreateToggle({
    Name = "Full Bright",
    CurrentValue = false,
    Flag = "FullBright",
    Callback = function(value)
        fullBrightEnabled = value
        if value then
            game.Lighting.Brightness = 2
            game.Lighting.Ambient = Color3.fromRGB(255, 255, 255)
            game.Lighting.OutdoorAmbient = Color3.fromRGB(255, 255, 255)
        else
            game.Lighting.Brightness = 0
            game.Lighting.Ambient = Color3.fromRGB(0, 0, 0)
            game.Lighting.OutdoorAmbient = Color3.fromRGB(0, 0, 0)
        end
    end
})

-- X-RAY
local xrayEnabled = false
local xrayOriginalTransparency = {}

local function toggleXRay(value)
    xrayEnabled = value
    
    for _, part in ipairs(workspace:GetDescendants()) do
        if part:IsA("BasePart") and part.Transparency ~= 1 and part ~= character and not part:IsDescendantOf(character) then
            if value then
                if not xrayOriginalTransparency[part] then
                    xrayOriginalTransparency[part] = part.Transparency
                end
                part.Transparency = 0.3
            else
                if xrayOriginalTransparency[part] then
                    part.Transparency = xrayOriginalTransparency[part]
                    xrayOriginalTransparency[part] = nil
                end
            end
        end
    end
end

VisualsTab:CreateToggle({
    Name = "X-Ray (Ver através de paredes)",
    CurrentValue = false,
    Flag = "XRay",
    Callback = toggleXRay
})

-- ============================================
-- SEÇÃO: COMBATE (CombatTab)
-- ============================================
-- Silent Aim
local silentAimEnabled = false
local silentAimConnection = nil

CombatTab:CreateToggle({
    Name = "Silent Aim",
    CurrentValue = false,
    Flag = "SilentAim",
    Callback = function(value)
        silentAimEnabled = value
        if value then
            silentAimConnection = runService.Heartbeat:Connect(function()
                if not silentAimEnabled then return end
                local mouse = player:GetMouse()
                local closestPlayer = nil
                local closestDistance = math.huge
                
                for _, plr in ipairs(game.Players:GetPlayers()) do
                    if plr ~= player and plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
                        local targetPos = plr.Character.HumanoidRootPart.Position
                        local distance = (targetPos - rootPart.Position).Magnitude
                        if distance < closestDistance then
                            closestDistance = distance
                            closestPlayer = plr
                        end
                    end
                end
                
                if closestPlayer and closestPlayer.Character then
                    local targetPart = closestPlayer.Character:FindFirstChild("Head") or closestPlayer.Character:FindFirstChild("HumanoidRootPart")
                    if targetPart then
                        mouse.Hit = CFrame.new(targetPart.Position)
                    end
                end
            end)
        else
            if silentAimConnection then
                silentAimConnection:Disconnect()
                silentAimConnection = nil
            end
        end
    end
})

-- Auto Click
local autoClickEnabled = false
local autoClickConnection = nil

CombatTab:CreateToggle({
    Name = "Auto Click",
    CurrentValue = false,
    Flag = "AutoClick",
    Callback = function(value)
        autoClickEnabled = value
        if value then
            autoClickConnection = runService.Heartbeat:Connect(function()
                if autoClickEnabled then
                    mouse1click()
                end
            end)
        else
            if autoClickConnection then
                autoClickConnection:Disconnect()
                autoClickConnection = nil
            end
        end
    end
})

-- ============================================
-- SEÇÃO: MISC (MiscTab)
-- ============================================
-- Anti-AFK
MiscTab:CreateToggle({
    Name = "Anti-AFK",
    CurrentValue = false,
    Flag = "AntiAFK",
    Callback = function(value)
        if value then
            game:GetService("VirtualUser"):CaptureController()
            game:GetService("VirtualUser"):SetKeyDown(" ")
            game:GetService("VirtualUser"):SetKeyUp(" ")
        end
    end
})

-- Teleport to Mouse
MiscTab:CreateButton({
    Name = "Teleportar para o Mouse",
    Callback = function()
        local mouse = player:GetMouse()
        if mouse and mouse.Hit then
            rootPart.CFrame = CFrame.new(mouse.Hit.Position + Vector3.new(0, 3, 0))
        end
    end
})

-- Reset Character
MiscTab:CreateButton({
    Name = "Resetar Personagem",
    Callback = function()
        player.Character:BreakJoints()
    end
})

-- ============================================
-- FREE CAM
-- ============================================
local freecamEnabled = false
local freecamCamera = nil
local freecamConnection = nil
local originalCamera = nil

MiscTab:CreateToggle({
    Name = "Freecam",
    CurrentValue = false,
    Flag = "Freecam",
    Callback = function(value)
        freecamEnabled = value
        
        if value then
            originalCamera = workspace.CurrentCamera
            
            freecamCamera = Instance.new("Camera")
            freecamCamera.CFrame = originalCamera.CFrame
            freecamCamera.Parent = workspace
            
            workspace.CurrentCamera = freecamCamera
            
            freecamConnection = runService.RenderStepped:Connect(function()
                if not freecamEnabled or not freecamCamera then return end
                
                local moveSpeed = 50
                local delta = runService.RenderStepped:Wait()
                local moveVector = Vector3.new()
                
                if userInputService:IsKeyDown(Enum.KeyCode.W) then
                    moveVector = moveVector + freecamCamera.CFrame.LookVector
                end
                if userInputService:IsKeyDown(Enum.KeyCode.S) then
                    moveVector = moveVector - freecamCamera.CFrame.LookVector
                end
                if userInputService:IsKeyDown(Enum.KeyCode.A) then
                    moveVector = moveVector - freecamCamera.CFrame.RightVector
                end
                if userInputService:IsKeyDown(Enum.KeyCode.D) then
                    moveVector = moveVector + freecamCamera.CFrame.RightVector
                end
                if userInputService:IsKeyDown(Enum.KeyCode.Space) then
                    moveVector = moveVector + Vector3.new(0, 1, 0)
                end
                if userInputService:IsKeyDown(Enum.KeyCode.LeftShift) then
                    moveVector = moveVector - Vector3.new(0, 1, 0)
                end
                
                if moveVector.Magnitude > 0 then
                    freecamCamera.CFrame = freecamCamera.CFrame + (moveVector.Unit * moveSpeed * delta)
                end
            end)
        else
            if freecamConnection then
                freecamConnection:Disconnect()
                freecamConnection = nil
            end
            if freecamCamera then
                freecamCamera:Destroy()
                freecamCamera = nil
            end
            if originalCamera then
                workspace.CurrentCamera = originalCamera
                originalCamera = nil
            end
        end
    end
})

print("✅ SCRIPT CARREGADO COM SUCESSO!")
print("Hacks disponíveis:")
print("- Fly (WASD + Espaço/Shift para subir/descer)")
print("- Noclip")
print("- God Mode")
print("- ESP")
print("- X-Ray")
print("- Silent Aim")
print("- Auto Click")
print("- Freecam (WASD + Espaço/Shift)")

Features & Information

script brasileiro funcional e basico para iniciantes de hack entenderem

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts