Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- KING SCRIPT MENU by Ghostrider_ZS (RGB em tudo, definições corrigidas)
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local TweenService = game:GetService("TweenService")
- local UserInputService = game:GetService("UserInputService")
- local Camera = workspace.CurrentCamera
- local player = Players.LocalPlayer
- local driftLerp = 0.01
- local driftSpeed = 30
- local driftAndroidAtivo = false
- local DriftAtivo = false
- local isAndroid = false
- local ESPAtivo = false
- local AdminCarregado = false
- local DexCarregado = false
- local AimbotAtivo = false
- local isMono = false
- local h = 0
- _G.DriftAtivo = false
- -- Tema fixo RGB
- local skin = {bg = Color3.fromRGB(25,25,35), border = true}
- -- GUI
- local playerGui = player:WaitForChild("PlayerGui")
- local menuGui = Instance.new("ScreenGui", playerGui)
- menuGui.Name = "MenuScriptsGui"
- menuGui.ResetOnSpawn = false
- menuGui.DisplayOrder = 10
- menuGui.ZIndexBehavior = Enum.ZIndexBehavior.Global
- -- Tween de visibilidade suave
- local function tweenVisibilidade(obj, vis)
- if vis then
- obj.Visible = true
- obj.BackgroundTransparency = 1
- TweenService:Create(obj, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
- else
- TweenService:Create(obj, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
- delay(0.26, function() obj.Visible = false end)
- end
- end
- local menuFrame = Instance.new("Frame", menuGui)
- menuFrame.Size = UDim2.new(0, 190, 0, 220)
- menuFrame.Position = UDim2.new(0, 20, 0, 60)
- menuFrame.BackgroundColor3 = skin.bg
- menuFrame.BorderColor3 = Color3.fromRGB(0,255,128)
- menuFrame.BorderSizePixel = 2
- menuFrame.Visible = false
- menuFrame.Active = true
- menuFrame.ZIndex = 10
- local function criarTexto(parent, props)
- local t = Instance.new("TextLabel", parent)
- t.BackgroundTransparency = 1
- t.TextColor3 = Color3.new(1,1,1)
- t.TextStrokeTransparency = 0.4
- t.TextStrokeColor3 = Color3.new(0,0,0)
- t.Font = Enum.Font.SourceSansBold
- t.TextSize = 17
- t.TextXAlignment = Enum.TextXAlignment.Left
- t.TextYAlignment = Enum.TextYAlignment.Center
- t.Visible = true
- t.ZIndex = 20
- for k,v in pairs(props) do t[k]=v end
- return t
- end
- local title = criarTexto(menuFrame, {
- Size = UDim2.new(1, 0, 0, 32),
- Position = UDim2.new(0, 0, 0, 0),
- Text = "KING SCRIPT v2",
- TextSize = 20,
- TextXAlignment = Enum.TextXAlignment.Center
- })
- -- MENU PRINCIPAL COM SCROLL
- local scrollMenu = Instance.new("ScrollingFrame", menuFrame)
- scrollMenu.Size = UDim2.new(1, -16, 1, -40)
- scrollMenu.Position = UDim2.new(0, 8, 0, 40)
- scrollMenu.BackgroundTransparency = 1
- scrollMenu.BorderSizePixel = 0
- scrollMenu.CanvasSize = UDim2.new(0, 0, 0, 300)
- scrollMenu.ScrollBarThickness = 8
- scrollMenu.ZIndex = 11
- scrollMenu.AutomaticCanvasSize = Enum.AutomaticSize.Y
- -- RGB para botões
- local rgbBtns = {}
- local function addMenuBtn(text, y)
- local btn = Instance.new("TextButton", scrollMenu)
- btn.Size = UDim2.new(1, 0, 0, 26)
- btn.Position = UDim2.new(0, 0, 0, y)
- btn.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- btn.TextColor3 = Color3.new(1, 1, 1)
- btn.TextStrokeTransparency = 0.4
- btn.TextStrokeColor3 = Color3.new(0,0,0)
- btn.Text = text
- btn.Font = Enum.Font.SourceSansBold
- btn.TextSize = 16
- btn.ZIndex = 12
- btn.AutoButtonColor = true
- btn.Active = true
- btn.BorderSizePixel = 2
- btn.BorderColor3 = Color3.fromRGB(0,255,128)
- table.insert(rgbBtns, btn)
- return btn
- end
- local btnAimbot = addMenuBtn("Aimbot: OFF", 0)
- local btnESP = addMenuBtn("ESP: OFF", 30)
- local btnDrift = addMenuBtn("Drift: OFF", 60)
- local btnAdmin = addMenuBtn("Admin: NÃO CARREGADO", 90)
- local btnDex = addMenuBtn("Dex: NÃO CARREGADO", 120)
- local function atualizarBotoesMenu()
- local y = 0
- if not isAndroid then
- btnAimbot.Visible = true
- btnAimbot.Position = UDim2.new(0, 0, 0, y)
- y = y + 30
- else
- btnAimbot.Visible = false
- end
- btnESP.Position = UDim2.new(0, 0, 0, y)
- y = y + 30
- btnDrift.Position = UDim2.new(0, 0, 0, y)
- y = y + 30
- btnAdmin.Position = UDim2.new(0, 0, 0, y)
- y = y + 30
- btnDex.Position = UDim2.new(0, 0, 0, y)
- end
- -- ESP funcional (Highlight)
- local espConns = {}
- local function setESP(state)
- for _,conn in ipairs(espConns) do pcall(function() conn:Disconnect() end) end
- espConns = {}
- for _,plr in ipairs(Players:GetPlayers()) do
- if plr ~= player then
- local function handleChar(char)
- if char and state then
- if not char:FindFirstChild("Highlight") then
- local h = Instance.new("Highlight")
- h.Name = "Highlight"
- h.FillColor = Color3.fromRGB(255,255,0)
- h.OutlineColor = Color3.fromRGB(255,80,0)
- h.FillTransparency = 0.7
- h.OutlineTransparency = 0
- h.Parent = char
- end
- end
- if char and not state and char:FindFirstChild("Highlight") then
- char.Highlight:Destroy()
- end
- end
- handleChar(plr.Character)
- table.insert(espConns, plr.CharacterAdded:Connect(function(char)
- wait(1)
- handleChar(char)
- end))
- end
- end
- table.insert(espConns, Players.PlayerAdded:Connect(function(plr)
- table.insert(espConns, plr.CharacterAdded:Connect(function(char)
- wait(1)
- if state then
- if not char:FindFirstChild("Highlight") then
- local h = Instance.new("Highlight")
- h.Name = "Highlight"
- h.FillColor = Color3.fromRGB(255,255,0)
- h.OutlineColor = Color3.fromRGB(255,80,0)
- h.FillTransparency = 0.7
- h.OutlineTransparency = 0
- h.Parent = char
- end
- end
- end))
- end))
- end
- btnESP.MouseButton1Click:Connect(function()
- ESPAtivo = not ESPAtivo
- btnESP.Text = ESPAtivo and "ESP: ON" or "ESP: OFF"
- btnESP.BackgroundColor3 = ESPAtivo and Color3.fromRGB(60,150,60) or Color3.fromRGB(50,50,50)
- setESP(ESPAtivo)
- end)
- -- DRIFT DO SEU EXEMPLO (sem campo de velocidade)
- local function isShiftLockActive()
- return UserInputService.MouseBehavior == Enum.MouseBehavior.LockCenter
- end
- local function sentarR6(humanoid)
- if humanoid and not humanoid.Sit then
- humanoid.Sit = true
- end
- end
- local function pararSentar(humanoid)
- if humanoid and humanoid.Sit then
- humanoid.Sit = false
- end
- end
- local function driftLoop(char)
- local humanoid = char:WaitForChild("Humanoid")
- local hrp = char:WaitForChild("HumanoidRootPart")
- local vel = Vector3.new()
- RunService.RenderStepped:Connect(function()
- if _G.DriftAtivo and humanoid.Health > 0 then
- sentarR6(humanoid)
- humanoid.WalkSpeed = driftSpeed
- local moveDir = humanoid.MoveDirection
- if moveDir.Magnitude > 0 then
- local targetVel = moveDir.Unit * driftSpeed
- vel = vel:Lerp(targetVel, driftLerp)
- else
- vel = vel:Lerp(Vector3.new(), driftLerp)
- end
- hrp.AssemblyLinearVelocity = Vector3.new(vel.X, hrp.AssemblyLinearVelocity.Y, vel.Z)
- if isShiftLockActive() then
- local cam = workspace.CurrentCamera
- local camLook = cam.CFrame.LookVector
- local lookVec = Vector3.new(camLook.X, 0, camLook.Z).Unit
- hrp.CFrame = CFrame.new(hrp.Position, hrp.Position + lookVec)
- else
- if vel.Magnitude > 0.1 then
- local lookVec = Vector3.new(vel.X, 0, vel.Z).Unit
- hrp.CFrame = CFrame.new(hrp.Position, hrp.Position + lookVec)
- end
- end
- else
- pararSentar(humanoid)
- humanoid.WalkSpeed = 16
- end
- end)
- end
- btnDrift.MouseButton1Click:Connect(function()
- _G.DriftAtivo = not _G.DriftAtivo
- DriftAtivo = _G.DriftAtivo
- btnDrift.Text = _G.DriftAtivo and "Drift: ON" or "Drift: OFF"
- btnDrift.BackgroundColor3 = _G.DriftAtivo and Color3.fromRGB(60,150,60) or Color3.fromRGB(50,50,50)
- end)
- player.CharacterAdded:Connect(function(char)
- driftLoop(char)
- end)
- if player.Character then
- driftLoop(player.Character)
- end
- -- Admin e Dex
- btnAdmin.MouseButton1Click:Connect(function()
- if not AdminCarregado then
- btnAdmin.Text = "Admin: CARREGADO"
- btnAdmin.BackgroundColor3 = Color3.fromRGB(60,150,60)
- AdminCarregado = true
- spawn(function()
- loadstring(game:HttpGet("https://raw.githubusercontent.com/ltseverydayyou/Nameless-Admin/main/NA%20testing.lua"))()
- end)
- end
- end)
- btnDex.MouseButton1Click:Connect(function()
- if not DexCarregado then
- btnDex.Text = "Dex: CARREGADO"
- btnDex.BackgroundColor3 = Color3.fromRGB(60,150,60)
- DexCarregado = true
- spawn(function()
- loadstring(game:HttpGet("https://raw.githubusercontent.com/peyton2465/Dex/master/out.lua"))()
- end)
- end
- end)
- -- Aimbot (PC)
- local aimCircle
- local aimbotConn
- local aimH = 0
- local function isFirstPerson()
- return (Camera.Focus.p - Camera.CFrame.p).Magnitude < 1.5
- end
- local function isVisible(targetPart)
- local origin = Camera.CFrame.Position
- local direction = (targetPart.Position - origin)
- local ray = Ray.new(origin, direction)
- local hit = workspace:FindPartOnRayWithIgnoreList(ray, {player.Character})
- return (not hit) or hit:IsDescendantOf(targetPart.Parent)
- end
- local function getClosestPlayerInFOV()
- local closest, dist = nil, 120
- for _,plr in ipairs(Players:GetPlayers()) do
- if plr~=player and plr.Character and plr.Character:FindFirstChild("Head") and plr.Character:FindFirstChildOfClass("Humanoid") and plr.Character:FindFirstChildOfClass("Humanoid").Health>0 then
- local pos, onScreen = Camera:WorldToViewportPoint(plr.Character.Head.Position)
- if onScreen and isVisible(plr.Character.Head) then
- local screenPos = Vector2.new(pos.X, pos.Y)
- local center = Vector2.new(Camera.ViewportSize.X/2, Camera.ViewportSize.Y/2)
- local d = (screenPos - center).Magnitude
- if d < dist then
- closest = plr.Character.Head
- dist = d
- end
- end
- end
- end
- return closest
- end
- local function drawAimbotFOV()
- if aimCircle then aimCircle:Remove() end
- aimCircle = Drawing.new("Circle")
- aimCircle.Position = Vector2.new(Camera.ViewportSize.X/2, Camera.ViewportSize.Y/2)
- aimCircle.Radius = 120
- aimCircle.Color = Color3.fromHSV(aimH, 1, 1)
- aimCircle.Thickness = 1
- aimCircle.Filled = false
- aimCircle.Transparency = 1
- aimCircle.Visible = false
- end
- local function removeAimbotFOV()
- if aimCircle then aimCircle:Remove() aimCircle = nil end
- end
- btnAimbot.MouseButton1Click:Connect(function()
- AimbotAtivo = not AimbotAtivo
- btnAimbot.Text = AimbotAtivo and "Aimbot: ON" or "Aimbot: OFF"
- btnAimbot.BackgroundColor3 = AimbotAtivo and Color3.fromRGB(60,150,60) or Color3.fromRGB(50,50,50)
- if aimbotConn then aimbotConn:Disconnect() aimbotConn = nil end
- removeAimbotFOV()
- if AimbotAtivo then
- drawAimbotFOV()
- aimbotConn = RunService.RenderStepped:Connect(function()
- aimH = (aimH + 0.002) % 1
- if aimCircle then
- aimCircle.Position = Vector2.new(Camera.ViewportSize.X/2, Camera.ViewportSize.Y/2)
- aimCircle.Color = Color3.fromHSV(aimH, 1, 1)
- aimCircle.Visible = AimbotAtivo and isFirstPerson()
- end
- if AimbotAtivo and isFirstPerson() and UserInputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton2) then
- local target = getClosestPlayerInFOV()
- if target then
- Camera.CFrame = CFrame.new(Camera.CFrame.Position, target.Position)
- end
- end
- end)
- end
- end)
- -- PAINEL DE DEFINIÇÕES
- local defFrame = Instance.new("Frame", menuGui)
- defFrame.Size = UDim2.new(0, 170, 0, 200)
- defFrame.Position = UDim2.new(0, 130, 0, 48)
- defFrame.BackgroundColor3 = skin.bg
- defFrame.BorderColor3 = menuFrame.BorderColor3
- defFrame.BorderSizePixel = 2
- defFrame.Visible = false
- defFrame.ZIndex = 22
- local defTitle = criarTexto(defFrame, {
- Size = UDim2.new(1, 0, 0, 26),
- Position = UDim2.new(0, 0, 0, 0),
- Text = "Definições",
- TextSize = 18,
- TextXAlignment = Enum.TextXAlignment.Center,
- ZIndex = 100
- })
- local scroll = Instance.new("ScrollingFrame", defFrame)
- scroll.Size = UDim2.new(1, 0, 1, -26)
- scroll.Position = UDim2.new(0, 0, 0, 26)
- scroll.BackgroundTransparency = 1
- scroll.BorderSizePixel = 0
- scroll.CanvasSize = UDim2.new(0,0,0,160)
- scroll.ScrollBarThickness = 8
- scroll.ZIndex = 23
- -- Botões das definições com RGB
- local rgbDefBtns = {}
- local yDef = 0
- local function addDefBtn(txt, callback, isActive)
- local btn = Instance.new("TextButton", scroll)
- btn.Size = UDim2.new(1, -12, 0, 22)
- btn.Position = UDim2.new(0, 6, 0, yDef)
- btn.BackgroundColor3 = Color3.fromRGB(60, 60, 90)
- btn.TextColor3 = Color3.new(1,1,1)
- btn.Text = txt
- btn.Font = Enum.Font.SourceSansBold
- btn.TextSize = 14
- btn.ZIndex = 24
- btn.AutoButtonColor = true
- btn.BorderSizePixel = 2
- btn.BorderColor3 = Color3.fromRGB(0,255,128)
- table.insert(rgbDefBtns, btn)
- btn.MouseButton1Click:Connect(function()
- local active = callback()
- btn.BackgroundColor3 = active and Color3.fromRGB(60,150,60) or Color3.fromRGB(60, 60, 90)
- end)
- yDef = yDef + 26
- scroll.CanvasSize = UDim2.new(0,0,0,math.max(yDef+30,scroll.Size.Y.Offset))
- return btn
- end
- -- Tema fixo (apenas label)
- local temaLabel = criarTexto(scroll, {
- Size = UDim2.new(1, -12, 0, 18),
- Position = UDim2.new(0, 6, 0, yDef),
- Text = "Tema do menu: Dark RGB",
- TextSize = 14,
- ZIndex = 24
- })
- yDef = yDef + 26
- -- Alternar Fonte
- addDefBtn("Alternar Fonte", function()
- isMono = not isMono
- local fonte = isMono and Enum.Font.Code or Enum.Font.SourceSans
- title.Font = fonte
- defTitle.Font = fonte
- btnESP.Font = fonte
- btnDrift.Font = fonte
- btnAdmin.Font = fonte
- btnDex.Font = fonte
- btnAimbot.Font = fonte
- return isMono
- end, isMono)
- -- Frase "Coming soon"
- local comingSoon = criarTexto(scroll, {
- Size = UDim2.new(1, -12, 0, 18),
- Position = UDim2.new(0, 6, 0, yDef+10),
- Text = "Coming soon",
- TextSize = 13,
- TextXAlignment = Enum.TextXAlignment.Center,
- ZIndex = 24
- })
- -- Botão fechar definições
- local closeDefBtn = Instance.new("TextButton", defFrame)
- closeDefBtn.Size = UDim2.new(0, 24, 0, 24)
- closeDefBtn.Position = UDim2.new(1, -28, 0, 2)
- closeDefBtn.BackgroundColor3 = Color3.fromRGB(60, 30, 30)
- closeDefBtn.TextColor3 = Color3.new(1, 1, 1)
- closeDefBtn.Text = "X"
- closeDefBtn.Font = Enum.Font.SourceSansBold
- closeDefBtn.TextSize = 14
- closeDefBtn.ZIndex = 24
- closeDefBtn.MouseButton1Click:Connect(function()
- tweenVisibilidade(defFrame, false)
- end)
- -- Botão de definições (⚙)
- local btnDef = Instance.new("TextButton", menuGui)
- btnDef.Size = UDim2.new(0, 32, 0, 32)
- btnDef.Position = UDim2.new(0, 100, 0, 10)
- btnDef.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- btnDef.TextColor3 = Color3.new(1, 1, 1)
- btnDef.Text = "⚙"
- btnDef.Font = Enum.Font.SourceSansBold
- btnDef.TextSize = 22
- btnDef.ZIndex = 21
- btnDef.Active = true
- btnDef.Visible = false
- btnDef.MouseButton1Click:Connect(function()
- if defFrame.Visible then
- tweenVisibilidade(defFrame, false)
- else
- tweenVisibilidade(defFrame, true)
- end
- end)
- -- Botão de menu (sempre visível após seleção)
- local toggleMenuBtn = Instance.new("TextButton", menuGui)
- toggleMenuBtn.Size = UDim2.new(0, 70, 0, 24)
- toggleMenuBtn.Position = UDim2.new(0, 20, 0, 10)
- toggleMenuBtn.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- toggleMenuBtn.TextColor3 = Color3.new(1, 1, 1)
- toggleMenuBtn.Text = "Menu"
- toggleMenuBtn.Font = Enum.Font.SourceSansBold
- toggleMenuBtn.TextSize = 15
- toggleMenuBtn.ZIndex = 20
- toggleMenuBtn.Active = true
- toggleMenuBtn.Visible = false
- toggleMenuBtn.MouseButton1Click:Connect(function()
- if menuFrame.Visible then
- tweenVisibilidade(menuFrame, false)
- btnDef.Visible = false
- tweenVisibilidade(defFrame, false)
- toggleMenuBtn.Text = "Menu"
- else
- tweenVisibilidade(menuFrame, true)
- btnDef.Visible = true
- toggleMenuBtn.Text = "Fechar"
- end
- end)
- -- Créditos sempre visíveis
- local cred = criarTexto(menuFrame, {
- Size = UDim2.new(1, 0, 0, 18),
- Position = UDim2.new(0, 0, 1, -18),
- Text = "by Ghostrider_ZS",
- TextSize = 14,
- TextXAlignment = Enum.TextXAlignment.Center
- })
- -- MENU DE SELEÇÃO INICIAL COM RGB E ANIMAÇÃO
- local abaGui = Instance.new("ScreenGui", playerGui)
- abaGui.Name = "AbaInicialGui"
- abaGui.ResetOnSpawn = false
- abaGui.DisplayOrder = 9
- local abaFrame = Instance.new("Frame", abaGui)
- abaFrame.Size = UDim2.new(0, 200, 0, 120)
- abaFrame.AnchorPoint = Vector2.new(0.5, 0.5)
- abaFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
- abaFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 40)
- abaFrame.BorderSizePixel = 2
- abaFrame.BorderColor3 = Color3.fromRGB(0,255,128)
- abaFrame.Active = true
- local abaTitulo = criarTexto(abaFrame, {
- Size = UDim2.new(1, 0, 0, 32),
- Position = UDim2.new(0, 0, 0, 0),
- Text = "Selecione seu dispositivo",
- TextSize = 16,
- TextXAlignment = Enum.TextXAlignment.Center
- })
- local btnAndroid = Instance.new("TextButton", abaFrame)
- btnAndroid.Size = UDim2.new(0.9, 0, 0, 28)
- btnAndroid.Position = UDim2.new(0.05, 0, 0, 38)
- btnAndroid.BackgroundColor3 = Color3.fromRGB(60, 180, 60)
- btnAndroid.TextColor3 = Color3.new(1, 1, 1)
- btnAndroid.Text = "Android"
- btnAndroid.Font = Enum.Font.SourceSansBold
- btnAndroid.TextSize = 15
- btnAndroid.AutoButtonColor = true
- btnAndroid.BorderSizePixel = 2
- btnAndroid.BorderColor3 = Color3.fromRGB(0,255,128)
- table.insert(rgbBtns, btnAndroid)
- local btnPC = Instance.new("TextButton", abaFrame)
- btnPC.Size = UDim2.new(0.9, 0, 0, 28)
- btnPC.Position = UDim2.new(0.05, 0, 0, 74)
- btnPC.BackgroundColor3 = Color3.fromRGB(60, 60, 180)
- btnPC.TextColor3 = Color3.new(1, 1, 1)
- btnPC.Text = "PC"
- btnPC.Font = Enum.Font.SourceSansBold
- btnPC.TextSize = 15
- btnPC.AutoButtonColor = true
- btnPC.BorderSizePixel = 2
- btnPC.BorderColor3 = Color3.fromRGB(0,255,128)
- table.insert(rgbBtns, btnPC)
- local function mostrarMenuCompleto()
- tweenVisibilidade(menuFrame, true)
- btnDef.Visible = true
- toggleMenuBtn.Visible = true
- toggleMenuBtn.Text = "Fechar"
- atualizarBotoesMenu()
- end
- btnAndroid.MouseButton1Click:Connect(function()
- isAndroid = true
- abaGui.Enabled = false
- mostrarMenuCompleto()
- end)
- btnPC.MouseButton1Click:Connect(function()
- isAndroid = false
- abaGui.Enabled = false
- mostrarMenuCompleto()
- end)
- -- RGB animado em todos os menus e botões
- spawn(function()
- while true do
- h = (h + 0.004) % 1
- local color = Color3.fromHSV(h, 1, 1)
- menuFrame.BorderColor3 = color
- title.TextColor3 = color
- defFrame.BorderColor3 = color
- defTitle.TextColor3 = color
- abaFrame.BorderColor3 = color
- abaTitulo.TextColor3 = color
- for _,btn in ipairs(rgbBtns) do
- btn.BorderColor3 = color
- end
- for _,btn in ipairs(rgbDefBtns) do
- btn.BorderColor3 = color
- end
- wait()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement