Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local Workspace = game:GetService("Workspace")
- local Teams = game:GetService("Teams")
- local Camera = Workspace.CurrentCamera
- local LocalPlayer = Players.LocalPlayer
- -- GUI Setup
- local gui = Instance.new("ScreenGui")
- gui.Name = "ExploitTestGUI"
- gui.ResetOnSpawn = false
- gui.Parent = game.CoreGui
- local function createButton(name, posY)
- local button = Instance.new("TextButton")
- button.Size = UDim2.new(0, 160, 0, 35)
- button.Position = UDim2.new(0, 20, 0, posY)
- button.Text = name .. ": OFF"
- button.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- button.TextColor3 = Color3.new(1, 1, 1)
- button.TextScaled = true
- button.ZIndex = 9999
- button.Active = true
- button.Draggable = true
- button.Parent = gui
- return button
- end
- -- Toggles
- local hacks = {
- Aimbot = false,
- Triggerbot = false,
- ESP = false
- }
- local buttons = {}
- buttons.Aimbot = createButton("Aimbot", 150)
- buttons.Triggerbot = createButton("Triggerbot", 190)
- buttons.ESP = createButton("ESP", 230)
- for name, button in pairs(buttons) do
- button.MouseButton1Click:Connect(function()
- hacks[name] = not hacks[name]
- button.Text = name .. ": " .. (hacks[name] and "ON" or "OFF")
- button.BackgroundColor3 = hacks[name] and Color3.fromRGB(0, 255, 0) or Color3.fromRGB(255, 0, 0)
- end)
- end
- -- Aimbot with wall check + team check
- local function getClosestTarget()
- local closest = nil
- local shortestDist = math.huge
- local origin = Camera.CFrame.Position
- for _, plr in pairs(Players:GetPlayers()) do
- if plr ~= LocalPlayer and plr.Team ~= LocalPlayer.Team and plr.Character and plr.Character:FindFirstChild("Head") then
- local head = plr.Character.Head
- local screenPos, onScreen = Camera:WorldToViewportPoint(head.Position)
- if onScreen then
- -- Wall check
- local rayParams = RaycastParams.new()
- rayParams.FilterDescendantsInstances = {LocalPlayer.Character}
- rayParams.FilterType = Enum.RaycastFilterType.Blacklist
- rayParams.IgnoreWater = true
- local result = Workspace:Raycast(origin, (head.Position - origin).Unit * 500, rayParams)
- if result and result.Instance:IsDescendantOf(plr.Character) then
- local dist = (Vector2.new(screenPos.X, screenPos.Y) - Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y / 2)).Magnitude
- if dist < shortestDist then
- shortestDist = dist
- closest = head
- end
- end
- end
- end
- end
- return closest
- end
- -- Triggerbot (mobile-friendly)
- local debounce = false
- local function getEnemyInCrosshair()
- local origin = Camera.CFrame.Position
- local direction = Camera.CFrame.LookVector * 500
- local rayParams = RaycastParams.new()
- rayParams.FilterDescendantsInstances = {LocalPlayer.Character}
- rayParams.FilterType = Enum.RaycastFilterType.Blacklist
- rayParams.IgnoreWater = true
- local result = Workspace:Raycast(origin, direction, rayParams)
- if result then
- local part = result.Instance
- local char = part:FindFirstAncestorOfClass("Model")
- if char and char ~= LocalPlayer.Character and char:FindFirstChild("Humanoid") then
- local plr = Players:GetPlayerFromCharacter(char)
- if plr and plr.Team ~= LocalPlayer.Team then
- if part.Name == "Head" or part.Name == "HumanoidRootPart" then
- return char
- end
- end
- end
- end
- return nil
- end
- local function simulateMobileFire()
- if not debounce then
- debounce = true
- -- Replace this with your weapon's RemoteEvent if needed
- print("[TRIGGERBOT] Firing at enemy in crosshair!")
- wait(0.1)
- debounce = false
- end
- end
- -- ESP (only for enemies)
- local espHighlights = {}
- local function clearESP()
- for _, h in pairs(espHighlights) do
- if h and h.Parent then
- h:Destroy()
- end
- end
- espHighlights = {}
- end
- local function updateESP()
- clearESP()
- for _, plr in pairs(Players:GetPlayers()) do
- if plr ~= LocalPlayer and plr.Team ~= LocalPlayer.Team and plr.Character and plr.Character:FindFirstChild("Head") then
- local highlight = Instance.new("Highlight")
- highlight.Name = "ESP_Highlight"
- highlight.Adornee = plr.Character
- highlight.FillColor = Color3.fromRGB(255, 0, 0)
- highlight.OutlineColor = Color3.fromRGB(255, 255, 255)
- highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
- highlight.Parent = plr.Character
- table.insert(espHighlights, highlight)
- end
- end
- end
- -- Main loop
- RunService.RenderStepped:Connect(function()
- if hacks.Aimbot then
- local target = getClosestTarget()
- if target then
- local camPos = Camera.CFrame.Position
- Camera.CFrame = CFrame.new(camPos, target.Position)
- end
- end
- if hacks.Triggerbot then
- local enemyChar = getEnemyInCrosshair()
- if enemyChar then
- simulateMobileFire()
- end
- end
- if hacks.ESP then
- updateESP()
- else
- clearESP()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment