Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Headshot_Key = Enum.KeyCode.E
- local Torsoshot_Key = Enum.KeyCode.K
- local plr = game.Players.LocalPlayer
- local Gui = Instance.new("ScreenGui",game.CoreGui)
- Gui.Name = "AimbotGui"
- local version = "1.0.1"
- HDown = false
- TDown = false
- mouse = game.Plalocal Headshot_Key = Enum.KeyCode.E
- local Torsoshot_Key = Enum.KeyCode.K
- local plr = game.Players.LocalPlayer
- local Gui = Instance.new("ScreenGui",game.CoreGui)
- Gui.Name = "AimbotGui"
- local version = "1.0.1"
- HDown = false
- TDown = false
- mouse = game.Players.LocalPlayer:GetMouse()
- cam = game.Workspace.CurrentCamera
- Players = game:service("Players")
- function onKeyPress(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Headshot_Key then
- if HDown == false and TDown == false then
- HDown = true
- print("[AIMBOT] Calculating closest player")
- local targetpoint = mouse.Hit
- local p = game.Players:GetChildren()
- local lowestdist = 99999999999
- local lowestplayer = nil
- for i=1,#p do
- if p[i]~=game.Players.LocalPlayer and p[i].Character~=nil and p[i].Character~=nil and p[i].TeamColor~=game.Players.LocalPlayer.TeamColor and p[i].Character.Humanoid.Health >0 and p[i].TeamColor~=BrickColor.new("White") then
- local dist = p[i]:DistanceFromCharacter(Vector3.new(targetpoint.X,targetpoint.Y,targetpoint.Z))
- if dist < lowestdist then
- lowestdist = dist
- lowestplayer = p[i]yers.LocalPlayer:GetMouse()
- cam = game.Workspace.CurrentCamera
- Players = game:service("Players")
- function onKeyPress(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Headshot_Key then
- if HDown == false and TDown == false then
- HDown = true
- print("[AIMBOT] Calculating closest player")
- local targetpoint = mouse.Hit
- local p = game.Players:GetChildren()
- local lowestdist = 99999999999
- local lowestplayer = nil
- for i=1,#p do
- if p[i]~=game.Players.LocalPlayer and p[i].Character~=nil and p[i].Character~=nil and p[i].TeamColor~=game.Players.LocalPlayer.TeamColor and p[i].Character.Humanoid.Health >0 and p[i].TeamColor~=BrickColor.new("White") then
- local dist = p[i]:DistanceFromCharacter(Vector3.new(targetpoint.X,targetpoint.Y,targetpoint.Z))
- if dist < lowestdist then
- lowestdist = dist
- lowestplayer = p[i]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement