Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- ================================================================
- -- MkNewHack - Script Hub (Versão Turbo)
- -- Fly CFrame (rápido), Aimbot Grudado, Auto Farm, Auto Clicker
- -- ================================================================
- -- ==================== CARREGAR RAYFIELD ====================
- local RayfieldLoaded, Rayfield = pcall(function()
- return loadstring(game:HttpGet("https://sirius.menu/rayfield"))()
- end)
- if not RayfieldLoaded then
- error("Falha ao carregar Rayfield. Verifique sua conexão.")
- end
- -- ==================== JANELA ====================
- local Window = Rayfield:CreateWindow({
- Name = "MkNewHack [Turbo]",
- LoadingTitle = "MkNewHack Loading...",
- LoadingSubtitle = "by MkDev - Fly Rápido + Aimbot Grudado",
- ConfigurationSaving = {
- Enabled = true,
- FileName = "MkNewHack_Config"
- },
- Discord = {
- Enabled = false
- },
- KeySystem = false
- })
- -- ==================== VARIÁVEIS GLOBAIS ====================
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local UserInputService = game:GetService("UserInputService")
- local Workspace = game:GetService("Workspace")
- local TweenService = game:GetService("TweenService")
- local LocalPlayer = Players.LocalPlayer
- local Camera = Workspace.CurrentCamera
- local Mouse = LocalPlayer:GetMouse()
- local Lighting = game:GetService("Lighting")
- -- ==================== ABAS ====================
- local StatusTab = Window:CreateTab("Status", 1334675577)
- local PlayerTab = Window:CreateTab("Player/ESP", 1334675577)
- local CheatsTab = Window:CreateTab("Cheats", 1334675577)
- local AimbotTab = Window:CreateTab("Aimbot", 1334675577)
- local PerformanceTab = Window:CreateTab("Performance", 1334675577)
- -- ==================== NOTIFICAÇÕES ====================
- local function CustomNotify(text, color)
- color = color or Color3.new(1,0,0)
- local sg = Instance.new("ScreenGui")
- sg.Parent = game.CoreGui
- sg.Name = "CustomNotify"
- local f = Instance.new("Frame")
- f.Size = UDim2.new(0,300,0,50)
- f.Position = UDim2.new(0.5,-150,0.1,0)
- f.BackgroundColor3 = Color3.new(0.1,0.1,0.1)
- f.BackgroundTransparency = 0.8
- f.BorderSizePixel = 2
- f.BorderColor3 = color
- f.Parent = sg
- local l = Instance.new("TextLabel")
- l.Size = UDim2.new(1,0,1,0)
- l.BackgroundTransparency = 1
- l.Text = text
- l.TextColor3 = Color3.new(1,1,1)
- l.Font = Enum.Font.GothamBold
- l.TextScaled = true
- l.TextWrapped = true
- l.Parent = f
- f.BackgroundTransparency = 1
- TweenService:Create(f, TweenInfo.new(0.3), {BackgroundTransparency = 0.8}):Play()
- task.wait(1.8)
- TweenService:Create(f, TweenInfo.new(0.5), {BackgroundTransparency = 1}):Play()
- task.wait(0.6)
- sg:Destroy()
- end
- -- ==================== STATUS ====================
- local PlayerNameLabel = StatusTab:CreateLabel("Player: " .. LocalPlayer.Name)
- local GameInfoLabel = StatusTab:CreateLabel("Jogo: " .. game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId).Name .. " (ID: " .. game.PlaceId .. ")")
- local ServerIDLabel = StatusTab:CreateLabel("Servidor: " .. game.JobId)
- local PlaytimeLabel = StatusTab:CreateLabel("Tempo de jogo: 0 min")
- local startTime = os.time()
- spawn(function()
- while task.wait(2) do
- local elapsed = os.time() - startTime
- PlaytimeLabel:Set("Tempo de jogo: " .. math.floor(elapsed/60) .. " min")
- end
- end)
- -- ==================== ESP CORRIGIDO ====================
- local ESPEnabled = false
- local ESPBoxEnabled = true
- local ESPNameEnabled = true
- local ESPDistanceEnabled = true
- local ESPBoxes = {}
- local ESPNames = {}
- local ESPDistances = {}
- local ESPTargets = {}
- local function GetCharacterPart(character, partName)
- if not character then return nil end
- local part = character:FindFirstChild(partName)
- if part then return part end
- part = character:FindFirstChild("HumanoidRootPart")
- if part then return part end
- part = character:FindFirstChild("UpperTorso")
- if part then return part end
- part = character:FindFirstChild("Torso")
- if part then return part end
- return nil
- end
- local function ClearESP()
- for _, v in pairs(ESPBoxes) do v:Destroy() end
- for _, v in pairs(ESPNames) do v:Destroy() end
- for _, v in pairs(ESPDistances) do v:Destroy() end
- ESPBoxes = {}
- ESPNames = {}
- ESPDistances = {}
- ESPTargets = {}
- end
- local function CreateESPForTarget(target, isBot)
- if target == LocalPlayer then return end
- local character
- local isPlayer = false
- if target:IsA("Player") then
- isPlayer = true
- character = target.Character
- if not character then return end
- else
- character = target
- end
- local root = GetCharacterPart(character, "HumanoidRootPart")
- if not root then return end
- local head = character:FindFirstChild("Head") or root
- local color = isBot and Color3.new(1,0.5,0) or Color3.new(1,0,0)
- local box = Instance.new("BoxHandleAdornment")
- box.Size = Vector3.new(3,5,1)
- box.Color3 = color
- box.Transparency = 0.5
- box.AlwaysOnTop = true
- box.ZIndex = 0
- box.Adornee = root
- box.Visible = ESPBoxEnabled and ESPEnabled
- box.Parent = character
- table.insert(ESPBoxes, box)
- local gui = Instance.new("BillboardGui")
- gui.Size = UDim2.new(0,150,0,40)
- gui.Adornee = head
- gui.AlwaysOnTop = true
- gui.MaxDistance = math.huge
- gui.Parent = character
- gui.Enabled = ESPEnabled
- local nameLabel = Instance.new("TextLabel", gui)
- nameLabel.Size = UDim2.new(1,0,0,20)
- nameLabel.Position = UDim2.new(0,0,0,0)
- nameLabel.BackgroundTransparency = 1
- nameLabel.Text = isBot and "Bot" or (isPlayer and target.Name or "NPC")
- nameLabel.TextColor3 = color
- nameLabel.Font = Enum.Font.GothamBold
- nameLabel.TextScaled = true
- nameLabel.Visible = ESPNameEnabled and ESPEnabled
- table.insert(ESPNames, nameLabel)
- local distLabel = Instance.new("TextLabel", gui)
- distLabel.Size = UDim2.new(1,0,0,15)
- distLabel.Position = UDim2.new(0,0,0,20)
- distLabel.BackgroundTransparency = 1
- distLabel.Text = "0 studs"
- distLabel.TextColor3 = Color3.new(1,1,1)
- distLabel.Font = Enum.Font.Gotham
- distLabel.TextScaled = true
- distLabel.Visible = ESPDistanceEnabled and ESPEnabled
- table.insert(ESPDistances, distLabel)
- table.insert(ESPTargets, {Root = root, DistLabel = distLabel})
- end
- local function UpdateESP()
- ClearESP()
- if not ESPEnabled then return end
- local hrp = LocalPlayer.Character and GetCharacterPart(LocalPlayer.Character, "HumanoidRootPart")
- local myPos = hrp and hrp.Position or Vector3.new(0,0,0)
- for _, player in pairs(Players:GetPlayers()) do
- if player ~= LocalPlayer and player.Character then
- local root = GetCharacterPart(player.Character, "HumanoidRootPart")
- if root then
- CreateESPForTarget(player, false)
- end
- end
- end
- for _, obj in pairs(Workspace:GetDescendants()) do
- if obj:IsA("Model") and obj:FindFirstChildOfClass("Humanoid") then
- local isPlayer = false
- for _, p in pairs(Players:GetPlayers()) do
- if p.Character == obj then isPlayer = true break end
- end
- if not isPlayer and obj ~= LocalPlayer.Character then
- local root = GetCharacterPart(obj, "HumanoidRootPart")
- if root then
- CreateESPForTarget(obj, true)
- end
- end
- end
- end
- end
- RunService.RenderStepped:Connect(function()
- if not ESPEnabled then return end
- local hrp = LocalPlayer.Character and GetCharacterPart(LocalPlayer.Character, "HumanoidRootPart")
- if not hrp then return end
- local myPos = hrp.Position
- for _, esp in pairs(ESPTargets) do
- if esp and esp.Root and esp.DistLabel then
- local dist = (esp.Root.Position - myPos).Magnitude
- esp.DistLabel.Text = string.format("%.0f studs", dist)
- end
- end
- end)
- local function RebuildESP() UpdateESP() end
- Players.PlayerAdded:Connect(RebuildESP)
- Players.PlayerRemoving:Connect(RebuildESP)
- LocalPlayer.CharacterAdded:Connect(function() task.wait(1); RebuildESP() end)
- -- ==================== UI ESP ====================
- PlayerTab:CreateSection("ESP Config")
- PlayerTab:CreateToggle({
- Name = "ESP Geral",
- CurrentValue = false,
- Flag = "ESPEnabled",
- Callback = function(Value)
- ESPEnabled = Value
- if not Value then ClearESP() end
- RebuildESP()
- end
- })
- PlayerTab:CreateToggle({
- Name = "Box ESP",
- CurrentValue = true,
- Flag = "ESPBox",
- Callback = function(Value)
- ESPBoxEnabled = Value
- for _, box in pairs(ESPBoxes) do box.Visible = Value and ESPEnabled end
- end
- })
- PlayerTab:CreateToggle({
- Name = "Nome",
- CurrentValue = true,
- Flag = "ESPName",
- Callback = function(Value)
- ESPNameEnabled = Value
- for _, label in pairs(ESPNames) do label.Visible = Value and ESPEnabled end
- end
- })
- PlayerTab:CreateToggle({
- Name = "Distância",
- CurrentValue = true,
- Flag = "ESPDistance",
- Callback = function(Value)
- ESPDistanceEnabled = Value
- for _, label in pairs(ESPDistances) do label.Visible = Value and ESPEnabled end
- end
- })
- -- ==================== TECLAS ====================
- local keysPressed = {W=false, A=false, S=false, D=false, Space=false, Shift=false}
- UserInputService.InputBegan:Connect(function(input, gameProcessed)
- if gameProcessed then return end
- local key = input.KeyCode
- if key == Enum.KeyCode.W then keysPressed.W = true end
- if key == Enum.KeyCode.A then keysPressed.A = true end
- if key == Enum.KeyCode.S then keysPressed.S = true end
- if key == Enum.KeyCode.D then keysPressed.D = true end
- if key == Enum.KeyCode.Space then keysPressed.Space = true end
- if key == Enum.KeyCode.LeftShift then keysPressed.Shift = true end
- end)
- UserInputService.InputEnded:Connect(function(input, gameProcessed)
- if gameProcessed then return end
- local key = input.KeyCode
- if key == Enum.KeyCode.W then keysPressed.W = false end
- if key == Enum.KeyCode.A then keysPressed.A = false end
- if key == Enum.KeyCode.S then keysPressed.S = false end
- if key == Enum.KeyCode.D then keysPressed.D = false end
- if key == Enum.KeyCode.Space then keysPressed.Space = false end
- if key == Enum.KeyCode.LeftShift then keysPressed.Shift = false end
- end)
- -- ==================== FLY RÁPIDO (MÉTODO CFrame) ====================
- local Flying = false
- local FlySpeed = 50
- local function StartFly()
- Flying = true
- local char = LocalPlayer.Character
- if char and char:FindFirstChild("Humanoid") then
- char.Humanoid.PlatformStand = true
- end
- end
- local function StopFly()
- Flying = false
- local char = LocalPlayer.Character
- if char and char:FindFirstChild("Humanoid") then
- char.Humanoid.PlatformStand = false
- local root = char:FindFirstChild("HumanoidRootPart")
- if root then root.Velocity = Vector3.new(0,0,0) end
- end
- end
- RunService.Heartbeat:Connect(function()
- if not Flying then return end
- local char = LocalPlayer.Character
- if not char then return end
- local root = char:FindFirstChild("HumanoidRootPart")
- if not root then return end
- local humanoid = char:FindFirstChild("Humanoid")
- if humanoid then humanoid.PlatformStand = true end
- local moveDirection = Vector3.new(0,0,0)
- if keysPressed.W then moveDirection = moveDirection + Vector3.new(0,0,-1) end
- if keysPressed.S then moveDirection = moveDirection + Vector3.new(0,0,1) end
- if keysPressed.A then moveDirection = moveDirection + Vector3.new(-1,0,0) end
- if keysPressed.D then moveDirection = moveDirection + Vector3.new(1,0,0) end
- if keysPressed.Space then moveDirection = moveDirection + Vector3.new(0,1,0) end
- if keysPressed.Shift then moveDirection = moveDirection + Vector3.new(0,-1,0) end
- if moveDirection.Magnitude > 0 then
- moveDirection = moveDirection.Unit * FlySpeed
- local worldMove = Camera.CFrame:VectorToWorldSpace(moveDirection)
- local newPos = root.Position + worldMove * 0.2 -- Multiplicador para suavidade
- root.Velocity = Vector3.new(0,0,0)
- root.CFrame = CFrame.new(newPos)
- end
- end)
- CheatsTab:CreateToggle({
- Name = "Fly (WASD) - Rápido",
- CurrentValue = false,
- Flag = "FlyEnabled",
- Callback = function(Value)
- if Value then StartFly() else StopFly() end
- end
- })
- CheatsTab:CreateSlider({
- Name = "Velocidade do Fly (10-100)",
- Range = {10, 100},
- Increment = 1,
- CurrentValue = 50,
- Flag = "FlySpeed",
- Callback = function(Value) FlySpeed = Value end
- })
- CheatsTab:CreateToggle({
- Name = "Anti-Reset Fly",
- CurrentValue = false,
- Flag = "AntiResetFly",
- Callback = function(Value)
- if Value then
- RunService.Heartbeat:Connect(function()
- if Flying and LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
- LocalPlayer.Character.HumanoidRootPart.Velocity = Vector3.new(0,0,0)
- end
- end)
- end
- end
- })
- -- ==================== AUTO FARM (VOO PARA 1000 studs) ====================
- local AutoFarmEnabled = false
- local FarmHeight = 1000
- local isFarming = false
- CheatsTab:CreateToggle({
- Name = "Auto Farm (Voa para 1000 studs)",
- CurrentValue = false,
- Flag = "AutoFarm",
- Callback = function(Value)
- AutoFarmEnabled = Value
- if not Value then
- isFarming = false
- local char = LocalPlayer.Character
- if char and char:FindFirstChild("Humanoid") then
- char.Humanoid.PlatformStand = false
- end
- else
- CustomNotify("Auto Farm ativado! Voando para 1000 studs.", Color3.new(0,1,0))
- end
- end
- })
- RunService.Heartbeat:Connect(function()
- if not AutoFarmEnabled then return end
- local char = LocalPlayer.Character
- if not char then return end
- local root = char:FindFirstChild("HumanoidRootPart")
- if not root then return end
- local humanoid = char:FindFirstChild("Humanoid")
- if not humanoid then return end
- -- Verifica se está vivo
- if humanoid.Health <= 0 then
- -- Espera respawn (o loop vai pegar no próximo tick)
- return
- end
- -- Ativa PlatformStand para ficar parado
- humanoid.PlatformStand = true
- local targetY = FarmHeight
- local currentPos = root.Position
- -- Se estiver muito longe do alvo (mais de 50 studs), teleporta suavemente
- if math.abs(currentPos.Y - targetY) > 10 then
- local targetPos = Vector3.new(currentPos.X, targetY, currentPos.Z)
- root.CFrame = CFrame.new(targetPos)
- root.Velocity = Vector3.new(0,0,0)
- isFarming = true
- else
- -- Mantém posição e para velocidade
- root.Velocity = Vector3.new(0,0,0)
- -- Garante que não desça
- if root.Position.Y < targetY - 1 then
- root.CFrame = CFrame.new(Vector3.new(root.Position.X, targetY, root.Position.Z))
- end
- isFarming = true
- end
- end)
- -- ==================== AUTO CLICKER (SEGURA M1) ====================
- local AutoClickerEnabled = false
- local isClicking = false
- CheatsTab:CreateToggle({
- Name = "Auto Clicker (Segura M1)",
- CurrentValue = false,
- Flag = "AutoClicker",
- Callback = function(Value)
- AutoClickerEnabled = Value
- if not Value and isClicking then
- Mouse1Up()
- isClicking = false
- end
- if Value then
- CustomNotify("Auto Clicker ativado! Segurando M1.", Color3.new(0,1,1))
- else
- CustomNotify("Auto Clicker desativado.", Color3.new(1,0,0))
- end
- end
- })
- RunService.RenderStepped:Connect(function()
- if not AutoClickerEnabled then
- if isClicking then
- Mouse1Up()
- isClicking = false
- end
- return
- end
- if not isClicking then
- Mouse1Down()
- isClicking = true
- end
- end)
- -- ==================== SPEED ====================
- local SpeedEnabled = false
- local SpeedValue = 50
- local JumpEnabled = false
- local JumpValue = 50
- RunService.Heartbeat:Connect(function()
- if SpeedEnabled then
- local hum = LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid")
- if hum and hum.WalkSpeed ~= SpeedValue then hum.WalkSpeed = SpeedValue end
- end
- end)
- RunService.Heartbeat:Connect(function()
- if JumpEnabled then
- local hum = LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid")
- if hum and hum.JumpPower ~= JumpValue then hum.JumpPower = JumpValue end
- end
- end)
- CheatsTab:CreateToggle({
- Name = "Speed Hack",
- CurrentValue = false,
- Flag = "SpeedHack",
- Callback = function(Value)
- SpeedEnabled = Value
- if not Value then
- local hum = LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid")
- if hum then hum.WalkSpeed = 16 end
- end
- end
- })
- CheatsTab:CreateSlider({
- Name = "Speed Value (16-200)",
- Range = {16, 200},
- Increment = 1,
- CurrentValue = 50,
- Flag = "SpeedValue",
- Callback = function(Value) SpeedValue = Value end
- })
- CheatsTab:CreateToggle({
- Name = "Jump Hack",
- CurrentValue = false,
- Flag = "JumpHack",
- Callback = function(Value)
- JumpEnabled = Value
- if not Value then
- local hum = LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid")
- if hum then hum.JumpPower = 50 end
- end
- end
- })
- CheatsTab:CreateSlider({
- Name = "Jump Value (50-500)",
- Range = {50, 500},
- Increment = 1,
- CurrentValue = 50,
- Flag = "JumpValue",
- Callback = function(Value) JumpValue = Value end
- })
- -- ==================== INFINITE JUMP ====================
- local InfiniteJumpEnabled = false
- CheatsTab:CreateToggle({
- Name = "Infinite Jump (segure espaço)",
- CurrentValue = false,
- Flag = "InfiniteJump",
- Callback = function(Value)
- InfiniteJumpEnabled = Value
- if Value then CustomNotify("Infinite Jump ativado!", Color3.new(0,1,1)) end
- end
- })
- RunService.Heartbeat:Connect(function()
- if InfiniteJumpEnabled and keysPressed.Space then
- local char = LocalPlayer.Character
- if char then
- local hum = char:FindFirstChild("Humanoid")
- if hum and hum:GetState() ~= Enum.HumanoidStateType.Jumping then
- hum:ChangeState(Enum.HumanoidStateType.Jumping)
- end
- end
- end
- end)
- -- ==================== AUTO SAFE ====================
- local AutoSafeEnabled = false
- local SafeObject = nil
- local SafeFlying = false
- local SafeConnection = nil
- CheatsTab:CreateToggle({
- Name = "Auto Safe (Low HP)",
- CurrentValue = false,
- Flag = "AutoSafe",
- Callback = function(Value)
- AutoSafeEnabled = Value
- if not Value then
- if SafeObject then SafeObject:Destroy(); SafeObject = nil end
- SafeFlying = false
- if SafeConnection then SafeConnection:Disconnect(); SafeConnection = nil end
- local char = LocalPlayer.Character
- if char and char:FindFirstChild("Humanoid") then char.Humanoid.PlatformStand = false end
- end
- end
- })
- SafeConnection = RunService.Heartbeat:Connect(function()
- if not AutoSafeEnabled then return end
- local char = LocalPlayer.Character
- if not char then return end
- local hum = char:FindFirstChildOfClass("Humanoid")
- if not hum then return end
- local root = char:FindFirstChild("HumanoidRootPart")
- if not root then return end
- if hum.Health / hum.MaxHealth <= 0.35 and not SafeFlying then
- SafeFlying = true
- hum.PlatformStand = true
- if not SafeObject then
- SafeObject = Instance.new("Part")
- SafeObject.Size = Vector3.new(10,1,10)
- SafeObject.Anchored = true
- SafeObject.Transparency = 1
- SafeObject.CanCollide = true
- SafeObject.Position = root.Position + Vector3.new(0, 4000, 0)
- SafeObject.Parent = Workspace
- end
- local tween = TweenService:Create(root, TweenInfo.new(2), {CFrame = CFrame.new(SafeObject.Position + Vector3.new(0,5,0))})
- tween:Play()
- CustomNotify("Auto Safe ativado!", Color3.new(0,1,0))
- elseif hum.Health / hum.MaxHealth > 0.35 and SafeFlying then
- SafeFlying = false
- if char and char:FindFirstChild("Humanoid") then char.Humanoid.PlatformStand = false end
- if SafeObject then SafeObject:Destroy(); SafeObject = nil end
- end
- end)
- -- ==================== NOCLIP ====================
- local NoclipEnabled = false
- CheatsTab:CreateToggle({
- Name = "Noclip",
- CurrentValue = false,
- Flag = "Noclip",
- Callback = function(Value) NoclipEnabled = Value end
- })
- RunService.Stepped:Connect(function()
- if NoclipEnabled and LocalPlayer.Character then
- for _, part in pairs(LocalPlayer.Character:GetDescendants()) do
- if part:IsA("BasePart") then part.CanCollide = false end
- end
- end
- end)
- -- ==================== ANTI-STUN ====================
- local AntiStunEnabled = false
- CheatsTab:CreateToggle({
- Name = "Anti-Stun",
- CurrentValue = false,
- Flag = "AntiStun",
- Callback = function(Value) AntiStunEnabled = Value end
- })
- RunService.Heartbeat:Connect(function()
- if AntiStunEnabled and LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
- local hum = LocalPlayer.Character.Humanoid
- pcall(function()
- hum:SetStateEnabled(Enum.HumanoidStateType.Stunned, false)
- hum:SetStateEnabled(Enum.HumanoidStateType.FallingDown, false)
- hum:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, false)
- end)
- end
- end)
- -- ==================== ANTI-RAGDOLL ====================
- local AntiRagdollEnabled = false
- CheatsTab:CreateToggle({
- Name = "Anti-Ragdoll",
- CurrentValue = false,
- Flag = "AntiRagdoll",
- Callback = function(Value) AntiRagdollEnabled = Value end
- })
- RunService.Heartbeat:Connect(function()
- if AntiRagdollEnabled and LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
- local hum = LocalPlayer.Character.Humanoid
- pcall(function() hum:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, false) end)
- end
- end)
- -- ==================== AIMBOT GRUDADO ====================
- local AimbotEnabled = false
- local AimbotMaxDistance = 1000
- local AimbotFilterTeam = true
- local AimbotTargetBots = false
- local AutoFireEnabled = false
- local AutoFireRequiresCrosshair = true
- local isShooting = false
- local currentTarget = nil
- local AutoShotDelay = 0.1
- local function GetTargetPart(character)
- if not character then return nil end
- local parts = {"Head", "HumanoidRootPart", "UpperTorso", "Torso"}
- for _, name in pairs(parts) do
- local part = character:FindFirstChild(name)
- if part then return part end
- end
- return nil
- end
- local function GetTeamFromObject(obj)
- if not obj then return nil end
- if obj:IsA("Player") then
- if obj.Team then return obj.Team end
- local char = obj.Character
- if char then
- for _, name in pairs({"Team", "TeamColor", "TeamId"}) do
- local t = char:FindFirstChild(name)
- if t and t:IsA("ValueBase") then return t.Value end
- end
- end
- local ls = obj:FindFirstChild("leaderstats")
- if ls then
- for _, name in pairs({"Team", "TeamId"}) do
- local t = ls:FindFirstChild(name)
- if t and t:IsA("ValueBase") then return t.Value end
- end
- end
- return nil
- end
- if obj:IsA("Model") then
- for _, name in pairs({"Team", "TeamColor", "TeamId"}) do
- local t = obj:FindFirstChild(name)
- if t and t:IsA("ValueBase") then return t.Value end
- end
- local hum = obj:FindFirstChildOfClass("Humanoid")
- if hum then
- for _, name in pairs({"Team", "TeamColor", "TeamId"}) do
- local t = hum:FindFirstChild(name)
- if t and t:IsA("ValueBase") then return t.Value end
- end
- end
- local success, team = pcall(function() return obj:GetAttribute("Team") end)
- if success and team then return team end
- return nil
- end
- return nil
- end
- local function IsSameTeam(obj1, obj2)
- if not obj1 or not obj2 then return false end
- local team1 = GetTeamFromObject(obj1)
- local team2 = GetTeamFromObject(obj2)
- if team1 and team2 then
- if type(team1) == "number" and type(team2) == "number" then return team1 == team2 end
- if type(team1) == "string" and type(team2) == "string" then return team1 == team2 end
- if type(team1) == "userdata" and type(team2) == "userdata" then return team1 == team2 end
- end
- return false
- end
- local function IsAlive(obj)
- if not obj then return false end
- local hum
- if obj:IsA("Player") then
- if not obj.Character then return false end
- hum = obj.Character:FindFirstChildOfClass("Humanoid")
- else
- hum = obj:FindFirstChildOfClass("Humanoid")
- end
- if not hum or hum.Health <= 0 then return false end
- local success, state = pcall(function() return hum:GetState() end)
- if success and state == Enum.HumanoidStateType.Dead then return false end
- return true
- end
- local function IsVisible(obj)
- if not obj then return false end
- local char = obj:IsA("Player") and obj.Character or obj
- if not char then return false end
- local targetPart = GetTargetPart(char)
- if not targetPart then return false end
- local origin = Camera.CFrame.Position
- local direction = targetPart.Position - origin
- if direction.Magnitude > AimbotMaxDistance then return false end
- local params = RaycastParams.new()
- params.FilterDescendantsInstances = {LocalPlayer.Character, char}
- params.FilterType = Enum.RaycastFilterType.Blacklist
- local ray = Workspace:Raycast(origin, direction, params)
- return ray == nil
- end
- local function IsInCrosshair(targetPos)
- local screenPos, onScreen = Camera:WorldToViewportPoint(targetPos)
- if not onScreen then return false end
- local center = Vector2.new(Camera.ViewportSize.X/2, Camera.ViewportSize.Y/2)
- return (Vector2.new(screenPos.X, screenPos.Y) - center).Magnitude < 50
- end
- local function GetAllTargets()
- local targets = {}
- local char = LocalPlayer.Character
- if not char then return targets end
- local root = char:FindFirstChild("HumanoidRootPart") or char:FindFirstChild("UpperTorso") or char:FindFirstChild("Torso")
- if not root then return targets end
- for _, player in pairs(Players:GetPlayers()) do
- if player == LocalPlayer then continue end
- if not player.Character then continue end
- if not IsAlive(player) then continue end
- if AimbotFilterTeam and IsSameTeam(LocalPlayer, player) then continue end
- local part = GetTargetPart(player.Character)
- if part then
- table.insert(targets, {Object = player, Part = part, IsBot = false})
- end
- end
- if AimbotTargetBots then
- for _, obj in pairs(Workspace:GetDescendants()) do
- if obj:IsA("Model") and obj:FindFirstChildOfClass("Humanoid") then
- local isPlayer = false
- for _, p in pairs(Players:GetPlayers()) do
- if p.Character == obj then isPlayer = true break end
- end
- if isPlayer or obj == LocalPlayer.Character then continue end
- if not IsAlive(obj) then continue end
- if AimbotFilterTeam and IsSameTeam(LocalPlayer, obj) then continue end
- local part = GetTargetPart(obj)
- if part then
- table.insert(targets, {Object = obj, Part = part, IsBot = true})
- end
- end
- end
- end
- return targets
- end
- local function GetClosestTarget()
- local char = LocalPlayer.Character
- if not char then return nil end
- local root = char:FindFirstChild("HumanoidRootPart") or char:FindFirstChild("UpperTorso") or char:FindFirstChild("Torso")
- if not root then return nil end
- local targets = GetAllTargets()
- local closest, closestDist = nil, math.huge
- for _, t in pairs(targets) do
- local dist = (t.Part.Position - root.Position).Magnitude
- if dist < closestDist and dist <= AimbotMaxDistance then
- closest = t
- closestDist = dist
- end
- end
- return closest
- end
- -- Aimbot GRUDADO (sem smoothing, instantâneo)
- RunService.RenderStepped:Connect(function()
- if not AimbotEnabled then return end
- local target = GetClosestTarget()
- if target and target.Part then
- currentTarget = target
- Camera.CFrame = CFrame.new(Camera.CFrame.Position, target.Part.Position)
- else
- currentTarget = nil
- end
- end)
- -- Auto Fire (Atira em alvos)
- RunService.RenderStepped:Connect(function()
- if not AutoFireEnabled or not AimbotEnabled then
- if isShooting then Mouse1Up(); isShooting = false end
- return
- end
- local target = GetClosestTarget()
- if target and target.Object and target.Part then
- if IsVisible(target.Object) and IsAlive(target.Object) then
- local shouldShoot = true
- if AutoFireRequiresCrosshair then
- shouldShoot = IsInCrosshair(target.Part.Position)
- end
- if shouldShoot then
- if not isShooting then Mouse1Down(); isShooting = true end
- else
- if isShooting then Mouse1Up(); isShooting = false end
- end
- else
- if isShooting then Mouse1Up(); isShooting = false end
- end
- else
- if isShooting then Mouse1Up(); isShooting = false end
- end
- end)
- -- UI Aimbot
- AimbotTab:CreateToggle({
- Name = "Aimbot (Grudado)",
- CurrentValue = false,
- Flag = "Aimbot",
- Callback = function(Value)
- AimbotEnabled = Value
- if not Value and isShooting then Mouse1Up(); isShooting = false end
- end
- })
- AimbotTab:CreateSlider({
- Name = "Distância Máxima (100-2000)",
- Range = {100, 2000},
- Increment = 50,
- CurrentValue = 1000,
- Flag = "AimbotMaxDistance",
- Callback = function(Value) AimbotMaxDistance = Value end
- })
- AimbotTab:CreateToggle({
- Name = "Filtrar Time (ignora aliados)",
- CurrentValue = true,
- Flag = "AimbotFilterTeam",
- Callback = function(Value)
- AimbotFilterTeam = Value
- CustomNotify("Filtro de Time " .. (Value and "ativado" or "desativado"), Color3.new(0,1,1))
- end
- })
- AimbotTab:CreateToggle({
- Name = "Mirar em Bots (NPCs)",
- CurrentValue = false,
- Flag = "AimbotTargetBots",
- Callback = function(Value)
- AimbotTargetBots = Value
- CustomNotify("Mirar em Bots " .. (Value and "ativado" or "desativado"), Color3.new(1,0.5,0))
- end
- })
- AimbotTab:CreateToggle({
- Name = "Auto Fire (atira em alvos visíveis)",
- CurrentValue = false,
- Flag = "AutoFire",
- Callback = function(Value)
- AutoFireEnabled = Value
- if not Value and isShooting then Mouse1Up(); isShooting = false end
- CustomNotify("Auto Fire " .. (Value and "ativado" or "desativado"), Color3.new(0,1,0))
- end
- })
- AimbotTab:CreateToggle({
- Name = "Auto Fire só no Crosshair",
- CurrentValue = true,
- Flag = "AutoFireCrosshair",
- Callback = function(Value)
- AutoFireRequiresCrosshair = Value
- CustomNotify("Auto Fire " .. (Value and "só no centro" or "em qualquer lugar visível"), Color3.new(0,1,1))
- end
- })
- AimbotTab:CreateSlider({
- Name = "Delay entre tiros (0.01-0.5)",
- Range = {0.01, 0.5},
- Increment = 0.01,
- CurrentValue = 0.1,
- Flag = "AutoShotDelay",
- Callback = function(Value) AutoShotDelay = Value end
- })
- -- ==================== PERFORMANCE ====================
- local UnlimitedZoom = false
- local LockFPSEnabled = false
- local TargetFPS = 60
- local FPSLockConnection = nil
- PerformanceTab:CreateSlider({
- Name = "Campo de Visão (FOV)",
- Range = {1, 120},
- Increment = 1,
- CurrentValue = 70,
- Flag = "FOV",
- Callback = function(Value) Camera.FieldOfView = Value end
- })
- PerformanceTab:CreateToggle({
- Name = "Unlimited Zoom (FOV=1)",
- CurrentValue = false,
- Flag = "UnlimitedZoom",
- Callback = function(Value)
- UnlimitedZoom = Value
- Camera.FieldOfView = Value and 1 or 70
- end
- })
- local function ApplyFPSLock()
- if FPSLockConnection then FPSLockConnection:Disconnect(); FPSLockConnection = nil end
- if not LockFPSEnabled or TargetFPS <= 0 then return end
- local frameTime = 1 / TargetFPS
- local lastTime = tick()
- FPSLockConnection = RunService.Heartbeat:Connect(function()
- local delta = tick() - lastTime
- if delta < frameTime then task.wait(frameTime - delta) end
- lastTime = tick()
- end)
- end
- PerformanceTab:CreateToggle({
- Name = "Lock FPS",
- CurrentValue = false,
- Flag = "LockFPS",
- Callback = function(Value)
- LockFPSEnabled = Value
- if Value then ApplyFPSLock(); CustomNotify("FPS travado em " .. TargetFPS, Color3.new(0,1,1))
- else if FPSLockConnection then FPSLockConnection:Disconnect(); FPSLockConnection = nil end; CustomNotify("Lock FPS desativado", Color3.new(1,0,0)) end
- end
- })
- PerformanceTab:CreateSlider({
- Name = "FPS Alvo (30-250)",
- Range = {30, 250},
- Increment = 1,
- CurrentValue = 60,
- Flag = "TargetFPS",
- Callback = function(Value)
- TargetFPS = Value
- if LockFPSEnabled then ApplyFPSLock(); CustomNotify("FPS alvo: " .. Value, Color3.new(0,1,1)) end
- end
- })
- -- ==================== FPS COUNTER ====================
- local FPSEnabled = false
- local FPSCounter = nil
- local FPSLabel = nil
- local FPSFrame = nil
- local FPSColor = "Verde"
- local ColorMap = {
- ["Verde"] = Color3.new(0,1,0),
- ["Vermelho"] = Color3.new(1,0,0),
- ["Azul"] = Color3.new(0,0,1),
- ["Amarelo"] = Color3.new(1,1,0),
- ["Roxo"] = Color3.new(0.6,0,1),
- ["Laranja"] = Color3.new(1,0.5,0),
- ["Rosa"] = Color3.new(1,0.4,0.7),
- ["Branco"] = Color3.new(1,1,1),
- ["Rainbow"] = "rainbow"
- }
- local function CreateFPSCounter()
- local sg = Instance.new("ScreenGui"); sg.Name = "FPSCounter"; sg.Parent = game.CoreGui; sg.ResetOnSpawn = false
- local f = Instance.new("Frame"); f.Size = UDim2.new(0,120,0,40); f.Position = UDim2.new(0.01,0,0.95,0)
- f.BackgroundTransparency = 0.7; f.BackgroundColor3 = Color3.new(0,0,0); f.BorderSizePixel = 2
- local color = ColorMap[FPSColor]; f.BorderColor3 = (color=="rainbow") and Color3.new(1,1,1) or (color or Color3.new(0,1,0))
- f.Parent = sg; FPSFrame = f
- local l = Instance.new("TextLabel"); l.Size = UDim2.new(1,0,1,0); l.BackgroundTransparency = 1; l.Text = "FPS: 0"
- l.Font = Enum.Font.GothamBold; l.TextScaled = true; l.TextColor3 = (color=="rainbow") and Color3.new(1,1,1) or (color or Color3.new(0,1,0))
- l.Parent = f; FPSLabel = l; FPSCounter = sg
- local frames, lastTime = 0, tick()
- RunService.RenderStepped:Connect(function()
- if not FPSEnabled then if FPSCounter then FPSCounter:Destroy(); FPSCounter=nil; FPSLabel=nil; FPSFrame=nil end return end
- frames = frames + 1
- if tick() - lastTime >= 1 then
- FPSLabel.Text = "FPS: " .. frames
- local color = ColorMap[FPSColor]
- if color == "rainbow" then color = Color3.fromHSV((tick()%2)/2,1,1) end
- if color then FPSLabel.TextColor3 = color; FPSFrame.BorderColor3 = color end
- frames = 0; lastTime = tick()
- end
- end)
- end
- PerformanceTab:CreateDropdown({
- Name = "Cor do FPS",
- Options = {"Verde", "Vermelho", "Azul", "Amarelo", "Roxo", "Laranja", "Rosa", "Branco", "Rainbow"},
- CurrentOption = "Verde",
- Flag = "FPSColor",
- Callback = function(Option)
- FPSColor = Option
- if FPSLabel and FPSFrame then
- local color = ColorMap[Option]
- if color and color ~= "rainbow" then FPSLabel.TextColor3 = color; FPSFrame.BorderColor3 = color
- else FPSLabel.TextColor3 = Color3.new(1,1,1); FPSFrame.BorderColor3 = Color3.new(1,1,1) end
- end
- end
- })
- PerformanceTab:CreateToggle({
- Name = "Show FPS",
- CurrentValue = false,
- Flag = "ShowFPS",
- Callback = function(Value)
- FPSEnabled = Value
- if Value then if not FPSCounter then CreateFPSCounter() end else if FPSCounter then FPSCounter:Destroy(); FPSCounter=nil; FPSLabel=nil; FPSFrame=nil end end
- end
- })
- -- ==================== RESET ====================
- PerformanceTab:CreateButton({
- Name = "Resetar Configurações",
- Callback = function()
- Camera.FieldOfView = 70
- if FPSLockConnection then FPSLockConnection:Disconnect(); FPSLockConnection = nil end
- LockFPSEnabled = false; UnlimitedZoom = false
- if isShooting then Mouse1Up(); isShooting = false end
- if isClicking then Mouse1Up(); isClicking = false end
- CustomNotify("Configurações resetadas!", Color3.new(0,1,0))
- end
- })
- -- ==================== ANTI-DETECT ====================
- print("Anti-Detect Active: System_Process_" .. math.random(1000,9999))
- CustomNotify("MkNewHack [Turbo] carregado! Fly rápido, Aimbot grudado, Auto Farm e Clicker.", Color3.new(0,1,0))
Advertisement
Add Comment
Please, Sign In to add comment