Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- This is obfuscated for reasons I dont understand. Also Some people will not read this.
- -- Hi, random person! I hope you find this script useful! (Btw only works for R6 and R15 heads and bodies. So it wont work for Phantom, Strucid, basically anything that doesnt have the R6 and R15 bodies and heads. (This was way too long for a side message.))
- PLAYER=game.Players.LocalPlayer;MOUSE=PLAYER:GetMouse()CC=game.Workspace.CurrentCamera;ENABLED=false;ESP_ENABLED=false;_G.FREE_FOR_ALL=true;_G.BIND=50;_G.ESP_BIND=52;_G.CHANGE_AIM='q'_G.AIM_AT='Head'wait(1)function GetNearestPlayerToMouse()local a={}local b={}local c={}for d,e in pairs(game.Players:GetPlayers())do if e~=PLAYER then table.insert(a,e)end end;for d,e in pairs(a)do if _G.FREE_FOR_ALL==false then if e and e.Character~=nil and e.TeamColor~=PLAYER.TeamColor then local f=e.Character:FindFirstChild(_G.AIM_AT)if f~=nil then local g=(f.Position-game.Workspace.CurrentCamera.CoordinateFrame.p).magnitude;local h=Ray.new(game.Workspace.CurrentCamera.CoordinateFrame.p,(MOUSE.Hit.p-CC.CoordinateFrame.p).unit*g)local i,j=game.Workspace:FindPartOnRay(h,game.Workspace)local k=math.floor((j-f.Position).magnitude)b[e.Name..d]={}b[e.Name..d].dist=g;b[e.Name..d].plr=e;b[e.Name..d].diff=k;table.insert(c,k)end end elseif _G.FREE_FOR_ALL==true then local f=e.Character:FindFirstChild(_G.AIM_AT)if f~=nil then local g=(f.Position-game.Workspace.CurrentCamera.CoordinateFrame.p).magnitude;local h=Ray.new(game.Workspace.CurrentCamera.CoordinateFrame.p,(MOUSE.Hit.p-CC.CoordinateFrame.p).unit*g)local i,j=game.Workspace:FindPartOnRay(h,game.Workspace)local k=math.floor((j-f.Position).magnitude)b[e.Name..d]={}b[e.Name..d].dist=g;b[e.Name..d].plr=e;b[e.Name..d].diff=k;table.insert(c,k)end end end;if unpack(c)==nil then return false end;local l=math.floor(math.min(unpack(c)))if l>20 then return false end;for d,e in pairs(b)do if e.diff==l then return e.plr end end;return false end;GUI_MAIN=Instance.new('ScreenGui',game.CoreGui)GUI_TARGET=Instance.new('TextLabel',GUI_MAIN)GUI_AIM_AT=Instance.new('TextLabel',GUI_MAIN)GUI_MAIN.Name='AIMBOT'GUI_TARGET.Size=UDim2.new(0,200,0,30)GUI_TARGET.BackgroundTransparency=0.5;GUI_TARGET.BackgroundColor=BrickColor.new('Fossil')GUI_TARGET.BorderSizePixel=0;GUI_TARGET.Position=UDim2.new(0.5,-100,0,0)GUI_TARGET.Text='AIMBOT : OFF'GUI_TARGET.TextColor3=Color3.new(1,1,1)GUI_TARGET.TextStrokeTransparency=1;GUI_TARGET.TextWrapped=true;GUI_TARGET.FontSize='Size24'GUI_TARGET.Font='SourceSansBold'GUI_AIM_AT.Size=UDim2.new(0,200,0,20)GUI_AIM_AT.BackgroundTransparency=0.5;GUI_AIM_AT.BackgroundColor=BrickColor.new('Fossil')GUI_AIM_AT.BorderSizePixel=0;GUI_AIM_AT.Position=UDim2.new(0.5,-100,0,30)GUI_AIM_AT.Text='AIMING : HEAD'GUI_AIM_AT.TextColor3=Color3.new(1,1,1)GUI_AIM_AT.TextStrokeTransparency=1;GUI_AIM_AT.TextWrapped=true;GUI_AIM_AT.FontSize='Size18'GUI_AIM_AT.Font='SourceSansBold'local m=false;function CREATE(n,o)local p=Instance.new('BillboardGui',PLAYER.PlayerGui)local q=Instance.new('Frame',p)local r=Instance.new('TextLabel',p)p.Name='ESP'p.Adornee=n;p.AlwaysOnTop=true;p.ExtentsOffset=Vector3.new(0,1,0)p.Size=UDim2.new(0,5,0,5)q.Name='DOT'q.BackgroundColor=BrickColor.new('Bright red')q.BackgroundTransparency=0.3;q.BorderSizePixel=0;q.Position=UDim2.new(-0.5,0,-0.5,0)q.Size=UDim2.new(2,0,2,0)q.Visible=true;q.ZIndex=10;r.Name='NAME'r.BackgroundColor3=Color3.new(255,255,255)r.BackgroundTransparency=1;r.BorderSizePixel=0;r.Position=UDim2.new(0,0,0,-40)r.Size=UDim2.new(1,0,10,0)r.Visible=true;r.ZIndex=10;r.Font='ArialBold'r.FontSize='Size14'r.Text=n.Parent.Name:upper()r.TextColor=BrickColor.new('Bright red')end;function CLEAR()for s,e in pairs(PLAYER.PlayerGui:children())do if e.Name=='ESP'and e:IsA('BillboardGui')then e:Destroy()end end end;function FIND()CLEAR()m=true;spawn(function()while wait()do if m then CLEAR()for d,e in pairs(game.Players:GetChildren())do if e.Character and e.Character:FindFirstChild('Head')then if _G.FREE_FOR_ALL==false then if e.TeamColor~=PLAYER.TeamColor then if e.Character:FindFirstChild('Head')then CREATE(e.Character.Head,true)end end else if e.Character:FindFirstChild('Head')then CREATE(e.Character.Head,true)end end end end end end;wait(1)end)end;MOUSE.KeyDown:connect(function(t)t=t:lower():byte()if t==_G.BIND then ENABLED=true end end)MOUSE.KeyUp:connect(function(t)t=t:lower():byte()if t==_G.BIND then ENABLED=false end end)MOUSE.KeyDown:connect(function(t)t=t:lower():byte()if t==_G.ESP_BIND then if ESP_ENABLED==false then FIND()ESP_ENABLED=true;print('ESP : ON')elseif ESP_ENABLED==true then wait()CLEAR()m=false;ESP_ENABLED=true;print('ESP : OFF')end end end)MOUSE.KeyDown:connect(function(t)if t==_G.CHANGE_AIM then if _G.AIM_AT=='Head'then _G.AIM_AT='Torso'GUI_AIM_AT.Text='AIMING : TORSO'elseif _G.AIM_AT=='Torso'then _G.AIM_AT='Head'GUI_AIM_AT.Text='AIMING : HEAD'end end end)game:GetService('RunService').RenderStepped:connect(function()if ENABLED then local u=GetNearestPlayerToMouse()if u~=false then local f=u.Character:FindFirstChild(_G.AIM_AT)if f then CC.CoordinateFrame=CFrame.new(CC.CoordinateFrame.p,f.CFrame.p)end;GUI_TARGET.Text='AIMBOT : '..u.Name:sub(1,5)else GUI_TARGET.Text='AIMBOT : OFF'end end end)repeat wait()if ESP_ENABLED==true then FIND()end until ESP_ENABLED==false;wait()_G.FREE_FOR_ALL=true;_G.BIND=50;_G.ESP_BIND=52
Advertisement
Advertisement