-- Hold E when you shoot to automatically aimbot and the ESP is still a work in progress --
local Torsoshot_Key = Enum.KeyCode.K
local plr = game.Players.LocalPlayer
local Gui = Instance.new('ScreenGui',game.CoreGui)
local version = '1.0.1'
HDown = false
mouse = game.Players.LocalPlayer:GetMouse()
Players = game:service('Players')
function onKeyPress(inputObject, gameProcessedEvent)
if HDown false and TDown false then
print('[AIMBOT] Calculating closest player')
local p = game.Players:GetChildren()
local lowestplayer = nil
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))
lowestdist = dist
end
end
print('[AIMBOT] Targeting '.lowestplayer.Name)
wait()
local TPos = lowestplayer.Character.Head.Position
cam.CFrame = CFrame.new(Vector3.new(cam.CFrame.X,cam.CFrame.Y,cam.CFrame.Z),Vector3.new(TPos.X,TPos.Y,TPos.Z))
end
elseif inputObject.KeyCode Torsoshot_Key then
TDown = true
local targetpoint = mouse.Hit
local lowestdist = 99999999999
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))
lowestdist = dist
end
end
print('[AIMBOT] Targeting '.lowestplayer.Name)
wait()
local TPos = lowestplayer.Character.Torso.Position
cam.CFrame = CFrame.new(Vector3.new(cam.CFrame.X,cam.CFrame.Y,cam.CFrame.Z),Vector3.new(TPos.X,TPos.Y,TPos.Z))
end
end
function onKeyRelease(inputObject, gameProcessedEvent)
HDown = false
elseif inputObject.KeyCode Torsoshot_Key then
end
if player ~= Players.LocalPlayer and player.Character then
local torso = player.Character:FindFirstChild('Torso')
local base = Instance.new('BillboardGui', workspace.CurrentCamera)
base.AlwaysOnTop = true
base.Size = UDim2.new(3.5,0,4.7,0)
base.Adornee = torso
esP.BackgroundColor3 = Color3.new(1,0,0)
esP.BorderColor3 = Color3.new(0,0,0)
esP.Size = UDim2.new(1,0,1,0)
end
for x,player in pairs(Players:GetChildren()) do
if player.TeamColor ~= plr.TeamColor then
if char then
if torso then
local playerName = player.Name
if currentcam:FindFirstChild(playerName) nil then
end
end
end
end
local function createframe(bkgc3,bkgtrans,borderc3, bordersize, name, parent, pos, rot, size, visible, zindex)
newframe.BackgroundColor3 = bkgc3
newframe.BorderColor3 = borderc3
newframe.Name = name
newframe.Position = pos
newframe.Size = size
newframe.ZIndex = zindex
end
local function createlabel(bkgc3,bkgtrans,borderc3, bordersize, name, parent, pos, rot, size, visible, zindex, font, fontsize, text, textc3, textscaled, textstrokec3, textstroketrans, texttrans, textwrapped, xalign, yalign)
newlabel.BackgroundColor3 = bkgc3
newlabel.BorderColor3 = borderc3
newlabel.Name = name
newlabel.Position = pos
newlabel.Size = size
newlabel.ZIndex = zindex
newlabel.FontSize = fontsize
newlabel.TextColor3 = textc3
newlabel.TextStrokeColor3 = textstrokec3
newlabel.TextStrokeTransparency = textstroketrans
newlabel.TextWrapped = textwrapped
newlabel.TextYAlignment = yalign
end
local function createbutton(autocolor, bkgc3,bkgtrans,borderc3, bordersize, name, parent, pos, rot, size, visible, zindex, font, fontsize, text, textc3, textscaled, textstrokec3, textstroketrans, texttrans, textwrapped, xalign, yalign)
newbutton.AutoButtonColor = autocolor
newbutton.BackgroundTransparency = bkgtrans
newbutton.BorderSizePixel = bordersize
newbutton.Parent = parent
newbutton.Rotation = rot
newbutton.Visible = visible
newbutton.Font = font
newbutton.Text = text
newbutton.TextScaled = textscaled
newbutton.TextStrokeTransparency = textstroketrans
newbutton.TextWrapped = textwrapped
newbutton.TextYAlignment = yalign
end
local function createtextbox(bkgc3,bkgtrans,borderc3, bordersize, clrtext, multiline, name, parent, pos, rot, size, visible, zindex, font, fontsize, text, textc3, textscaled, textstrokec3, textstroketrans, texttrans, textwrapped, xalign, yalign)
newbox.BackgroundColor3 = bkgc3
newbox.BorderColor3 = borderc3
newbox.ClearTextOnFocus = clrtext
newbox.Name = name
newbox.Position = pos
newbox.Size = size
newbox.ZIndex = zindex
newbox.FontSize = fontsize
newbox.TextColor3 = textc3
newbox.TextStrokeColor3 = textstrokec3
newbox.TextTransparency = texttrans
newbox.TextXAlignment = xalign
return newbox
local function createimagelabel(bkgc3,bkgtrans,borderc3, bordersize, name, parent, pos, rot, size, visible, zindex, image, imagetrans)
newimage.BackgroundColor3 = bkgc3
newimage.BorderColor3 = borderc3
newimage.Name = name
newimage.Position = pos
newimage.Size = size
newimage.ZIndex = zindex
newimage.ImageTransparency = imagetrans
end
-------------------------------INITIALIZE INTRO GUI-------------------------------------
local IntroFrame = createframe(Color3.new(245/255,245/255,245/255),0,Color3.new(27/255,42/255,53/255),0,'IntroFrame',Gui,UDim2.new(0,-330,0,0),0,UDim2.new(0,300,1,0),true,1)
--[[bar]] createframe(Color3.new(245/255,245/255,245/255),0,Color3.new(0,0,0),0,'bar',IntroFrame,UDim2.new(1,0,0,0),0,UDim2.new(0,30,0,90),true,1)
--[[slant]] createimagelabel(Color3.new(1,1,1),1,Color3.new(0,0,0),0,'Slant',IntroFrame,UDim2.new(1,0,0,90),90,UDim2.new(0,30,0,30),true,1,474172996,0)
--[[creator]] createlabel(Color3.new(1,1,1),1,Color3.new(0,0,0),0,'Creator',IntroFrame,UDim2.new(0,80,1,-40),0,UDim2.new(0,140,0,30),true,1,Enum.Font.Code,Enum.FontSize.Size28,'Symplicity',Color3.new(27/255,42/255,53/255), false,Color3.new(0,0,0),1,0,true,Enum.TextXAlignment.Center,Enum.TextYAlignment.Center)
--[[creatorlabel]] createlabel(Color3.new(1,1,1),1,Color3.new(0,0,0),0,'CreatorLabel',IntroFrame,UDim2.new(0,80,1,-70),0,UDim2.new(0,140,0,30),true,1,Enum.Font.Code,Enum.FontSize.Size18,'Made by:',Color3.new(27/255,42/255,53/255), false,Color3.new(0,0,0),1,0,true,Enum.TextXAlignment.Center,Enum.TextYAlignment.Center)
--[[desc]] createlabel(Color3.new(1,1,1),1,Color3.new(0,0,0),0,'Desc',IntroFrame,UDim2.new(0,0,0,120),0,UDim2.new(1,0,0,90),true,1,Enum.Font.SourceSansLight,Enum.FontSize.Size14,'Feel free to share, just give me creds :) The ESP was not originally created by me, I don't know who created it',Color3.new(0,0,0), true,Color3.new(0,0,0),1,0,true,Enum.TextXAlignment.Center,Enum.TextYAlignment.Center)
--[[subtitle]] createlabel(Color3.new(1,1,1),1,Color3.new(0,0,0),0,'SubTitle',IntroFrame,UDim2.new(0.5,-150,0,70),0,UDim2.new(0,300,0,40),true,1,Enum.Font.SourceSansBold,Enum.FontSize.Size32,'Aimbot/ESP',Color3.new(27/255,42/255,53/255), false,Color3.new(0,0,0),1,0,true,Enum.TextXAlignment.Center,Enum.TextYAlignment.Center)
--[[title]] createlabel(Color3.new(1,1,1),1,Color3.new(0,0,0),0,'Title',IntroFrame,UDim2.new(0.5,-105,0,20),0,UDim2.new(0,210,0,60),true,1,Enum.Font.SourceSansBold,Enum.FontSize.Size60,'FPS',Color3.new(27/255,42/255,53/255), false,Color3.new(0,0,0),1,0,true,Enum.TextXAlignment.Center,Enum.TextYAlignment.Center)
IntroFrame:TweenPosition(UDim2.new(0,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quart,0.5,true)
IntroFrame:TweenPosition(UDim2.new(0,-330,0,0),Enum.EasingDirection.In,Enum.EasingStyle.Quart,0.5,true)
Gui:Destroy()
game:GetService('UserInputService').InputBegan:connect(onKeyPress)
game:GetService('UserInputService').InputEnded:connect(onKeyRelease)
while wait(1) do
end