Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Loading AimBot 1.0")
- local NoKillList={treyreynolds=true,xXxMoNkEyMaNxXx=true,zimbabwe0=true}
- local AimBotting=false
- local AimAtTorso=false
- local RayCasting=true
- local TeamCheck=true
- local cast=workspace.FindPartOnRayWithIgnoreList
- local ray=Ray.new
- local MAX_ITERATIONS=25
- local function PiercingCast(p0,p1,ignore)
- local Part
- local i=0
- repeat
- i=i+1
- local cond=(p1-p0).magnitude<999
- Part,p0=cast(workspace,ray(p0,cond and p1-p0 or (p1-p0).unit*999),ignore)
- if Part then
- if Part.CanCollide==false or Part.Transparency==1 then
- ignore[#ignore+1]=Part
- Part=nil
- end
- elseif cond or i>MAX_ITERATIONS then
- break
- end
- until Part
- return Part,p0
- end
- local Camera=Workspace.CurrentCamera
- local Player=game.Players.LocalPlayer
- game:GetService("RunService").RenderStepped:connect(function()
- if AimBotting or AutoAimBot then
- local p=game.Players:GetPlayers()
- local d,t=-1
- local c=Camera.CoordinateFrame
- for i=1,#p do
- local ch=p[i].Character
- if p[i]~=Player
- and ch:FindFirstChild("Humanoid")
- and ch:FindFirstChild("Torso")
- and ch.Humanoid.Health>0
- and not (TeamCheck and Player.TeamColor==p[i].TeamColor or NoKillList[p[i].Name] or ch:FindFirstChild'ForceField') then
- local tp=AimAtTorso and ch.Torso.Position or ch.Torso.CFrame*Vector3.new(0,1.5,0)
- local HitPart=PiercingCast(c.p,tp,{Camera,Player.Character})
- if not (RayCasting and HitPart) or ch:IsAncestorOf(HitPart) then
- local m=(tp-c.p).unit:Dot(c.lookVector)
- if m==m and m>d then
- d,t=m,tp
- end
- end
- end
- end
- if t then
- Camera.CoordinateFrame=CFrame.new(Camera.Focus.p,t)*CFrame.new(0,0,0.5)
- end
- end
- end)
- local Hint=Camera:FindFirstChild("Message") or Instance.new("Hint",Camera)
- local m=Player:GetMouse()
- m.Button2Down:connect(function()
- AimBotting=true
- print("AimBotting")
- end)
- m.Button2Up:connect(function()
- AimBotting=false
- print("Idle")
- end)
- m.KeyDown:connect(function(k)
- if k=="b" then
- AimAtTorso=not AimAtTorso
- print("Aiming for:",AimAtTorso and "Torso" or "Head")
- elseif k=="n" then
- RayCasting=not RayCasting
- print("RayCastCheck:",RayCasting)
- elseif k=="m" then
- TeamCheck=not TeamCheck
- print("TeamCheck:",TeamCheck)
- elseif k=="k" then
- AutoAimBot=not AutoAimBot
- print("AutoAimBot:",AutoAimBot)
- elseif k=="h" and Player.Character:FindFirstChild("Humanoid") then
- local h=Player.Character.Humanoid
- h.Health=h.MaxHealth
- end
- Hint.Parent=Camera
- Hint.Text="Aiming for: "..(AimAtTorso and "Torso" or "Head").." RayCastCheck: "..tostring(RayCasting).." TeamCheck: "..tostring(TeamCheck).." AutoAimBot: "..tostring(AutoAimBot)
- end)
- print("Loaded AimBot 1.0")
- return true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement