Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Aimbot configuration -- Only edit these values
- local aimbotMaxDistance = 500 -- distance on which aimbot will stop targeting players. only float values are accepted
- local aimbotKeybind = Enum.KeyCode.LeftAlt -- key that player will have to hold in order to enable aimbot targeting. only enum library values are accepted
- local aimbotTargetPartName = 'Head' -- name of the part that aimbot will target. DO NOT enter R6 or R15 specific parts. only string values are accepted
- local doFriendCheck = true -- aimbot won't target players from user's friend list. only boolean values are accepted
- local activateWithMouse = true -- alternative aimbot usage method via right mouse button. only boolean values are accepted
- ------------------------------------------------------------------------------------------------------------------------------
- -- Message
- game.StarterGui:SetCore('SendNotification', {
- Title = 'Thanks for using my cheat!';
- Text = 'Cheat made by ImRealLenny#5061';
- Button1 = 'Ty daddy';
- })
- -- Instances
- local EZE_S_P = Instance.new("BillboardGui")
- local TargetName = Instance.new("TextLabel")
- local Point = Instance.new("Frame")
- local UICorner = Instance.new("UICorner")
- local HealthbarBg = Instance.new("Frame")
- local Frame = Instance.new("Frame")
- -- Properties
- EZE_S_P.Name = "EZE_S_P"
- EZE_S_P.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- EZE_S_P.Active = true
- EZE_S_P.AlwaysOnTop = true
- EZE_S_P.LightInfluence = 1.000
- EZE_S_P.Size = UDim2.new(3, 0, 3, 0)
- TargetName.Name = "TargetName"
- TargetName.Parent = EZE_S_P
- TargetName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TargetName.BackgroundTransparency = 1.000
- TargetName.Size = UDim2.new(1, 0, 0.25, 0)
- TargetName.Font = Enum.Font.Gotham
- TargetName.Text = "{tar_name}"
- TargetName.TextColor3 = Color3.fromRGB(255, 255, 255)
- TargetName.TextScaled = true
- TargetName.TextSize = 14.000
- TargetName.TextStrokeTransparency = 0.500
- TargetName.TextWrapped = true
- Point.Name = "Point"
- Point.Parent = EZE_S_P
- Point.AnchorPoint = Vector2.new(0.5, 0.5)
- Point.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- Point.Position = UDim2.new(0.5, 0, 0.5, 0)
- Point.Size = UDim2.new(0.330000013, 0, 0.330000013, 0)
- UICorner.CornerRadius = UDim.new(1, 0)
- UICorner.Parent = Point
- HealthbarBg.Name = "HealthbarBg"
- HealthbarBg.Parent = EZE_S_P
- HealthbarBg.AnchorPoint = Vector2.new(0.5, 1)
- HealthbarBg.BackgroundColor3 = Color3.fromRGB(255, 0, 4)
- HealthbarBg.BorderSizePixel = 0
- HealthbarBg.Position = UDim2.new(0.5, 0, 0.800000012, 0)
- HealthbarBg.Size = UDim2.new(1, 0, 0.100000001, 0)
- Frame.Parent = HealthbarBg
- Frame.BackgroundColor3 = Color3.fromRGB(12, 255, 0)
- Frame.BorderSizePixel = 0
- Frame.Size = UDim2.new(0.5, 0, 1, 0)
- -- Aimbot related stuff
- local cam = workspace.CurrentCamera
- function getNearestPlayer()
- local maxDist = aimbotMaxDistance
- local target = nil
- local succes, errorMessage = pcall(function()
- for i, v in ipairs(game.Players:GetPlayers()) do
- if v:IsA('Player') then
- if v.Name ~= game.Players.LocalPlayer.Name then
- print('Found player')
- if v.Team ~= game.Players.LocalPlayer.Team or v.Neutral then
- if not game.Players.LocalPlayer:IsFriendsWith(v.UserId) and doFriendCheck == true or doFriendCheck == false then
- print('Found player is an enemy')
- if v.Character then
- local char = v.Character
- char:WaitForChild('HumanoidRootPart')
- if char:FindFirstChild('HumanoidRootPart') then
- local hrp = char:FindFirstChild("HumanoidRootPart")
- local dist = (hrp.Position - game.Players.LocalPlayer.Character.PrimaryPart.Position).Magnitude
- local hum = hrp.Parent:FindFirstChild('Humanoid')
- if hum then
- if hum.Health > 0 then
- local _, isOnScreen = cam:WorldToScreenPoint(hrp.Position)
- if isOnScreen then
- if dist < maxDist then
- print('Set target')
- maxDist = dist
- target = v
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end)
- if succes then
- print('void getNearestPlayer() succed')
- end
- if game.Players.LocalPlayer.Character then
- if game.Players.LocalPlayer.Character.Humanoid then
- if game.Players.LocalPlayer.Character.Humanoid.Health > 0 then
- return target
- end
- end
- end
- end
- local isAimbotKeyDown = false
- local mouse = game.Players.LocalPlayer:GetMouse()
- mouse.Button2Down:Connect(function()
- if activateWithMouse == true then
- isAimbotKeyDown = true
- end
- end)
- mouse.Button2Up:Connect(function()
- if activateWithMouse == true then
- isAimbotKeyDown = false
- end
- end)
- game:GetService('UserInputService').InputBegan:Connect(function(key)
- if key.KeyCode == aimbotKeybind then
- print('Enabled')
- isAimbotKeyDown = true
- end
- end)
- game:GetService('UserInputService').InputEnded:Connect(function(key)
- if key.KeyCode == aimbotKeybind then
- print('Disabled')
- isAimbotKeyDown = false
- end
- end)
- game:GetService('RunService').RenderStepped:Connect(function()
- local closestPlayer = getNearestPlayer()
- if isAimbotKeyDown == true then
- if closestPlayer then
- print(closestPlayer.Name..' is the closest player')
- if closestPlayer.Character:FindFirstChild(aimbotTargetPartName) then
- print('Found target part')
- cam.CFrame = CFrame.new(cam.CFrame.Position, closestPlayer.Character.Head.Position)
- end
- end
- end
- for i, v in ipairs(game.Players:GetPlayers()) do
- if v:IsA('Player') then
- if v ~= game.Players.LocalPlayer then
- local char = v.Character
- if char then
- if char.PrimaryPart then
- if char.PrimaryPart:FindFirstChild(EZE_S_P.Name) then
- local hum = char:WaitForChild('Humanoid')
- local ezEspFrame = char.PrimaryPart:FindFirstChild(EZE_S_P.Name)
- ezEspFrame.TargetName.Text = v.Name
- ezEspFrame.HealthbarBg.Frame.Size = UDim2.new(hum.Health / hum.MaxHealth, 0, 1, 0)
- else
- local hum = char:WaitForChild('Humanoid')
- local ezEspFrame = EZE_S_P:Clone()
- ezEspFrame.Parent = char.PrimaryPart
- ezEspFrame.TargetName.Text = v.Name
- ezEspFrame.HealthbarBg.Frame.Size = UDim2.new(hum.Health / hum.MaxHealth, 0, 1, 0)
- end
- end
- end
- end
- end
- end
- end)
- --[[
- Cheat was tested and is 100% undetectable on:
- - Criminality - Although can be reported
- - Jailbreak - Although can be reported
- - Town - Although can be reported
- - Blackhawk Rescue Mission 5
- Cheat was injected (tested) and is 100% working on:
- - KRNL
- - Synapse X
- For sake of being undetected, it's recommended to use loadstring, although copy/paste method works aswell.
- Just copy this line of code and paste into injector:
- --
- loadstring("https://pastebin.com/raw/h8NczqzW", true)
- --
- *Data is valid as for 27th July 2022.
- ]]
Advertisement
Add Comment
Please, Sign In to add comment