--BROUGHT TO YOU BY RobloxScripter.com!--
aimassist = true
teambased = false -- teamcheck
aim = 1
lock = 0
fov = 120
e = Instance.new("SelectionBox")
e.Color3 = Color3.new(1, 0, 0)
e.Parent = game.Workspace
mouse = game.Players.LocalPlayer:GetMouse()
game:GetService("RunService").RenderStepped:Connect(function()
if lock == 0 then
if (120 - (mouse.Hit.Position - game.Workspace.CurrentCamera.CFrame.Position).Magnitude / 5)>116 then
fov = 120 - ((mouse.Hit.Position - game.Workspace.CurrentCamera.CFrame.Position).Magnitude / 5)
else
fov = 116
end
end
game.Workspace.CurrentCamera.DiagonalFieldOfView = fov
game.Workspace.CurrentCamera.FieldOfView = fov
if mouse.Target.Parent:FindFirstChild("Humanoid") then
if game.Players:FindFirstChild(mouse.Target.Parent.Name) then
if game.Players:FindFirstChild(mouse.Target.Parent.Name).TeamColor == game.Players.LocalPlayer.TeamColor then
if teambased == false then
e.Adornee = mouse.Target
if aimassist == true then
lock = 1
fov = 105
game.Workspace.CurrentCamera.CFrame = game.Workspace.CurrentCamera.CFrame:Lerp(CFrame.new(game.Workspace.CurrentCamera.CFrame.Position, mouse.Target.Parent:FindFirstChild("Head").Position), 0.94)
end
end
else
e.Adornee = mouse.Target
if aimassist == true then
lock = 1
fov = 105
game.Workspace.CurrentCamera.CFrame = game.Workspace.CurrentCamera.CFrame:Lerp(CFrame.new(game.Workspace.CurrentCamera.CFrame.Position, mouse.Target.Parent:FindFirstChild("Head").Position), 0.94)
end
end
end
else
lock = 0
fov = 120
e.Adornee = nil
e.Adornee = nil
end
end)