Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait (0) local Camera = workspace.CurrentCamera
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local UserInputService = game:GetService("UserInputService")
- local TweenService = game:GetService("TweenService")
- local LocalPlayer = Players.LocalPlayer
- local Holding = false
- _G.AimbotEnabled = true
- _G.TeamCheck = true -- If set to true then the script would only lock your aim at enemy team members.
- _G.AimPart = "Head" -- Where the aimbot script would lock at.
- _G.Sensitivity = 0 -- How many seconds it takes for the aimbot script to officially lock onto the target's aimpart.
- local function GetClosestPlayer()
- local MaximumDistance = math.huge
- local Target = nil
- coroutine.wrap(function()
- wait(20); MaximumDistance = math.huge -- Reset the MaximumDistance so that the Aimbot doesn't remember it as a very small variable and stop capturing players...
- end)()
- for _, v in next, Players:GetPlayers() do
- if v.Name ~= LocalPlayer.Name then
- if _G.TeamCheck == true then
- if v.Team ~= LocalPlayer.Team then
- if v.Character ~= nil then
- if v.Character:FindFirstChild("HumanoidRootPart") ~= nil then
- if v.Character:FindFirstChild("Humanoid") ~= nil and v.Character:FindFirstChild("Humanoid").Health ~= 0 then
- local ScreenPoint = Camera:WorldToScreenPoint(v.Character:WaitForChild("HumanoidRootPart", math.huge).Position)
- local VectorDistance = (Vector2.new(UserInputService:GetMouseLocation().X, UserInputService:GetMouseLocation().Y) - Vector2.new(ScreenPoint.X, ScreenPoint.Y)).Magnitude
- if VectorDistance < MaximumDistance then
- Target = v
- MaximumDistance = VectorDistance
- end
- end
- end
- end
- end
- else
- if v.Character ~= nil then
- if v.Character:FindFirstChild("HumanoidRootPart") ~= nil then
- if v.Character:FindFirstChild("Humanoid") ~= nil and v.Character:FindFirstChild("Humanoid").Health ~= 0 then
- local ScreenPoint = Camera:WorldToScreenPoint(v.Character:WaitForChild("HumanoidRootPart", math.huge).Position)
- local VectorDistance = (Vector2.new(UserInputService:GetMouseLocation().X, UserInputService:GetMouseLocation().Y) - Vector2.new(ScreenPoint.X, ScreenPoint.Y)).Magnitude
- if VectorDistance < MaximumDistance then
- Target = v
- MaximumDistance = VectorDistance
- end
- end
- end
- end
- end
- end
- end
- return Target
- end
- UserInputService.InputBegan:Connect(function(Input)
- if Input.UserInputType == Enum.UserInputType.MouseButton2 then
- Holding = true
- end
- end)
- UserInputService.InputEnded:Connect(function(Input)
- if Input.UserInputType == Enum.UserInputType.MouseButton2 then
- Holding = false
- end
- end)
- RunService.RenderStepped:Connect(function()
- if Holding == true and _G.AimbotEnabled == true then
- TweenService:Create(Camera, TweenInfo.new(_G.Sensitivity, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {CFrame = CFrame.new(Camera.CFrame.Position, GetClosestPlayer().Character[_G.AimPart].Position)}):Play()
- end
- end)
- local dwEntities = game:GetService("Players")
- local dwLocalPlayer = dwEntities.LocalPlayer
- local dwRunService = game:GetService("RunService")
- local settings_tbl = {
- ESP_Enabled = true,
- ESP_TeamCheck = false,
- Chams = true,
- Chams_Color = Color3.fromRGB(255,0,0),
- Chams_Transparency = 0.1,
- Chams_Glow_Color = Color3.fromRGB(255,0,0)
- }
- function destroy_chams(char)
- for k,v in next, char:GetChildren() do
- if v:IsA("BasePart") and v.Transparency ~= 1 then
- if v:FindFirstChild("Glow") and
- v:FindFirstChild("Chams") then
- v.Glow:Destroy()
- v.Chams:Destroy()
- end
- end
- end
- end
- dwRunService.Heartbeat:Connect(function()
- if settings_tbl.ESP_Enabled then
- for k,v in next, dwEntities:GetPlayers() do
- if v ~= dwLocalPlayer then
- if v.Character and
- v.Character:FindFirstChild("HumanoidRootPart") and
- v.Character:FindFirstChild("Humanoid") and
- v.Character:FindFirstChild("Humanoid").Health ~= 0 then
- if settings_tbl.ESP_TeamCheck == false then
- local char = v.Character
- for k,b in next, char:GetChildren() do
- if b:IsA("BasePart") and
- b.Transparency ~= 1 then
- if settings_tbl.Chams then
- if not b:FindFirstChild("Glow") and
- not b:FindFirstChild("Chams") then
- local chams_box = Instance.new("BoxHandleAdornment", b)
- chams_box.Name = "Chams"
- chams_box.AlwaysOnTop = true
- chams_box.ZIndex = 4
- chams_box.Adornee = b
- chams_box.Color3 = settings_tbl.Chams_Color
- chams_box.Transparency = settings_tbl.Chams_Transparency
- chams_box.Size = b.Size + Vector3.new(0.02, 0.02, 0.02)
- local glow_box = Instance.new("BoxHandleAdornment", b)
- glow_box.Name = "Glow"
- glow_box.AlwaysOnTop = false
- glow_box.ZIndex = 3
- glow_box.Adornee = b
- glow_box.Color3 = settings_tbl.Chams_Glow_Color
- glow_box.Size = chams_box.Size + Vector3.new(0.13, 0.13, 0.13)
- end
- else
- destroy_chams(char)
- end
- end
- end
- else
- if v.Team == dwLocalPlayer.Team then
- destroy_chams(v.Character)
- end
- end
- else
- destroy_chams(v.Character)
- end
- end
- end
- else
- for k,v in next, dwEntities:GetPlayers() do
- if v ~= dwLocalPlayer and
- v.Character and
- v.Character:FindFirstChild("HumanoidRootPart") and
- v.Character:FindFirstChild("Humanoid") and
- v.Character:FindFirstChild("Humanoid").Health ~= 0 then
- destroy_chams(v.Character)
- end
- end
- end
- end)
- loadstring(game:HttpGet('https://raw.githubusercontent.com/bockatta/Atta/main/2'))();
Advertisement
Comments
-
- It works
-
- wait (0) local Camera = workspace.CurrentCamera
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local UserInputService = game:GetService("UserInputService")
- local TweenService = game:GetService("TweenService")
- local LocalPlayer = Players.LocalPlayer
- local Holding = false
- _G.AimbotEnabled = true
- _G.TeamCheck = true -- If set to true then the script would only lock your aim at enemy team members.
- _G.AimPart = "Head" -- Where the aimbot script would lock at.
- _G.Sensitivity = 0 -- How many seconds it takes for the aimbot script to officially lock onto the target's aimpart.
- local function GetClosestPlayer()
- local MaximumDistance = math.huge
- local Target = nil
- coroutine.wrap(function()
- wait(20); MaximumDistance = math.huge -- Reset the MaximumDistance so that the Aimbot doesn't remember it as a very small variable and stop capturing players...
- end)()
- for _, v in next, Players:GetPlayers() do
- if v.Name ~= LocalPlayer.Name then
- if _G.TeamCheck == true then
- if v.Team ~= LocalPlayer.Team then
- if v.Character ~= nil then
- if v.Character:FindFirstChild("HumanoidRootPart") ~= nil then
- if v.Character:FindFirstChild("Humanoid") ~= nil and v.Character:FindFirstChild("Humanoid").Health ~= 0 then
- local ScreenPoint = Camera:WorldToScreenPoint(v.Character:WaitForChild("HumanoidRootPart", math.huge).Position)
- local VectorDistance = (Vector2.new(UserInputService:GetMouseLocation().X, UserInputService:GetMouseLocation().Y) - Vector2.new(ScreenPoint.X, ScreenPoint.Y)).Magnitude
- if VectorDistance < MaximumDistance then
- Target = v
- MaximumDistance = VectorDistance
- end
- end
- end
- end
- end
- else
- if v.Character ~= nil then
- if v.Character:FindFirstChild("HumanoidRootPart") ~= nil then
- if v.Character:FindFirstChild("Humanoid") ~= nil and v.Character:FindFirstChild("Humanoid").Health ~= 0 then
- local ScreenPoint = Camera:WorldToScreenPoint(v.Character:WaitForChild("HumanoidRootPart", math.huge).Position)
- local VectorDistance = (Vector2.new(UserInputService:GetMouseLocation().X, UserInputService:GetMouseLocation().Y) - Vector2.new(ScreenPoint.X, ScreenPoint.Y)).Magnitude
- if VectorDistance < MaximumDistance then
- Target = v
- MaximumDistance = VectorDistance
- end
- end
- end
- end
- end
- end
- end
- return Target
- end
- UserInputService.InputBegan:Connect(function(Input)
- if Input.UserInputType == Enum.UserInputType.MouseButton2 then
- Holding = true
- end
- end)
- UserInputService.InputEnded:Connect(function(Input)
- if Input.UserInputType == Enum.UserInputType.MouseButton2 then
- Holding = false
- end
- end)
- RunService.RenderStepped:Connect(function()
- if Holding == true and _G.AimbotEnabled == true then
- TweenService:Create(Camera, TweenInfo.new(_G.Sensitivity, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {CFrame = CFrame.new(Camera.CFrame.Position, GetClosestPlayer().Character[_G.AimPart].Position)}):Play()
- end
- end)
- local dwEntities = game:GetService("Players")
- local dwLocalPlayer = dwEntities.LocalPlayer
- local dwRunService = game:GetService("RunService")
- local settings_tbl = {
- ESP_Enabled = true,
- ESP_TeamCheck = false,
- Chams = true,
- Chams_Color = Color3.fromRGB(255,0,0),
- Chams_Transparency = 0.1,
- Chams_Glow_Color = Color3.fromRGB(255,0,0)
- }
- function destroy_chams(char)
- for k,v in next, char:GetChildren() do
- if v:IsA("BasePart") and v.Transparency ~= 1 then
- if v:FindFirstChild("Glow") and
- v:FindFirstChild("Chams") then
- v.Glow:Destroy()
- v.Chams:Destroy()
- end
- end
- end
- end
- dwRunService.Heartbeat:Connect(function()
- if settings_tbl.ESP_Enabled then
- for k,v in next, dwEntities:GetPlayers() do
- if v ~= dwLocalPlayer then
- if v.Character and
- v.Character:FindFirstChild("HumanoidRootPart") and
- v.Character:FindFirstChild("Humanoid") and
- v.Character:FindFirstChild("Humanoid").Health ~= 0 then
- if settings_tbl.ESP_TeamCheck == false then
- local char = v.Character
- for k,b in next, char:GetChildren() do
- if b:IsA("BasePart") and
- b.Transparency ~= 1 then
- if settings_tbl.Chams then
- if not b:FindFirstChild("Glow") and
- not b:FindFirstChild("Chams") then
- local chams_box = Instance.new("BoxHandleAdornment", b)
- chams_box.Name = "Chams"
- chams_box.AlwaysOnTop = true
- chams_box.ZIndex = 4
- chams_box.Adornee = b
- chams_box.Color3 = settings_tbl.Chams_Color
- chams_box.Transparency = settings_tbl.Chams_Transparency
- chams_box.Size = b.Size + Vector3.new(0.02, 0.02, 0.02)
- local glow_box = Instance.new("BoxHandleAdornment", b)
- glow_box.Name = "Glow"
- glow_box.AlwaysOnTop = false
- glow_box.ZIndex = 3
- glow_box.Adornee = b
- glow_box.Color3 = settings_tbl.Chams_Glow_Color
- glow_box.Size = chams_box.Size + Vector3.new(0.13, 0.13, 0.13)
- end
- else
- destroy_chams(char)
- end
- end
- end
- else
- if v.Team == dwLocalPlayer.Team then
- destroy_chams(v.Character)
- end
- end
- else
- destroy_chams(v.Character)
- end
- end
- end
- else
- for k,v in next, dwEntities:GetPlayers() do
- if v ~= dwLocalPlayer and
- v.Character and
- v.Character:FindFirstChild("HumanoidRootPart") and
- v.Character:FindFirstChild("Humanoid") and
- v.Character:FindFirstChild("Humanoid").Health ~= 0 then
- destroy_chams(v.Character)
- end
- end
- end
- end)
- loadstring(game:HttpGet('https://raw.githubusercontent.com/bockatta/Atta/main/2'))();
- I5qmannanan
-
- got banned
-
- got banned
Add Comment
Please, Sign In to add comment
Advertisement