Aimblox Script Lists

--BROUGHT TO YOU BY GETMODS.NET--

local fireServerFn = nil
do
   local gc = getgc()
   for i = 1, #gc do
       local fn = gc[i]
       if type(fn) == 'function' and islclosure(fn) and getinfo(fn).source:match('ReplicatedFirst%.B') and (not is_synapse_function(fn)) then
           local consts = getconstants(fn)
           if table.find(consts,'Instance') and table.find(consts,'RemoteEvent') then
               fireServerFn = fn
               break
           end
       end
   end
end

local bodyparts = {
   "Head",
   "HumanoidRootPart",
   "Torso"
}

while task.wait(.1) do
   for i,v in pairs(game.Players:GetPlayers()) do
       if v == game.Players.LocalPlayer then
           continue
       end
       local character = v.Character;
       local part = character and character:FindFirstChild(bodyparts[math.random(1,#bodyparts)])
       local position = part and part.Position
       
       if not position then continue end
       for i = 1, 3 do
           fireServerFn(game.ReplicatedStorage.Remotes.GunShot, { v }, part, position, "Default")
       end
   end
end
local Caller = require(game.ReplicatedStorage.Client.RemoteCaller)
if not Caller.RemoteCall then
    print("WTF?? ? WHERE DID IT GO ????")
end



function SafeCall(Remote, ...)
    syn.secure_call(Caller.RemoteCall, game.Players.LocalPlayer.PlayerScripts.GunRemotes, Remote, unpack({...}))
end
while task.wait(.2) do
    for i,v in pairs(game.Players:GetPlayers()) do
        if v.Character and v.Character:FindFirstChild("Head")then
            for i = 1, 3 do
                SafeCall(
                    game.ReplicatedStorage.Remotes.GunShot,
                    {
                        v,
                    },
                    v.Character.Head,
                    v.Character.Head.Position,
                    "Default"
                )
            end
        end
    end
end
local Players = game:GetService("Players")

local LocalPlayer = Players.LocalPlayer
local Camera = workspace.CurrentCamera

local Mouse = LocalPlayer:GetMouse()

local WorldToScreenPoint = Camera.WorldToScreenPoint
local GetPlayers = Players.GetPlayers
local FindFirstChild = game.FindFirstChild

local function GetOnScreenPosition(V3)
	local Position, IsVisible = WorldToScreenPoint(Camera, V3)
	return Vector2.new(Position.X, Position.Y), IsVisible
end

local function GetDirection(Origin, Position)
    return (Position - Origin).Unit * (Origin - Position).Magnitude
end

local function GetMousePosition()
    return Vector2.new(Mouse.X, Mouse.Y)
end

local function GetClosestPlayer()
	local Closest, Distance = nil, 10000

	for _, Player in next, GetPlayers(Players) do
		if Player ~= LocalPlayer then
			local Character = Player.Character
			local Head = Character and FindFirstChild(Character, "Head")
			local Humanoid = Character and FindFirstChild(Character, "Humanoid")
			if Head and (Humanoid and Humanoid.Health > 0) then
				local ScreenPos, IsVisible = GetOnScreenPosition(Head.Position)
				if IsVisible then
					local _Distance = (GetMousePosition() - ScreenPos).Magnitude
					if _Distance <= Distance then
						Closest = Head
						Distance = _Distance
					end
				end
			end
		end
	end

	return Closest, Distance
end

local oldNamecall
oldNamecall = hookmetamethod(game, "__namecall", function(...)
	local Method = getnamecallmethod()
	local Arguments = {...}

	if Arguments[1] == workspace and Method == "Raycast" then
		if typeof(Arguments[#Arguments]) ~= "RaycastParams" then
			return oldNamecall(...)
		end

		local HitPart = GetClosestPlayer()

		if HitPart then
			Arguments[3] = GetDirection(Arguments[2], HitPart.Position)
			return oldNamecall(unpack(Arguments))
		end
	end

	return oldNamecall(...)
end)
loadstring(game:HttpGet(('https://raw.githubusercontent.com/Straden/Scripts/main/stronccMain.lua'),true))()
--BROUGHT TO YOU BY GETMODS.NET--
loadstring(game:HttpGet("https://raw.githubusercontent.com/zzerexx/scripts/main/Aimblox.lua"))()

Join Partner Discord Server