OPENSOURCE silent aim and wallbang
Key Required

OPENSOURCE silent aim and wallbang

Airsoft Battlessametexesametexe 22.4K views 885 executesUpdated Nov 13, 2024
3.3/ 5(3 votes)
2167% Positive
Lua Script•57 lines (2108 chars)
--// Made by samet.exe on discord
--// Will not work for solara

local ReplicatedStorage = game:GetService("ReplicatedStorage");
local Players = game:GetService("Players");
local RunService = game:GetService("RunService");
local Workspace = game:GetService("Workspace");
local UserInputService = game:GetService("UserInputService");

local LocalPlayer = Players.LocalPlayer;
local Camera = Workspace.CurrentCamera;

local Modules = {}; do
    Modules.Shoot = require(ReplicatedStorage:FindFirstChild("Modules"):FindFirstChild("Projectile"):FindFirstChild("ShootModule"));
end;
local Closest;

local GetClosestPlayer = function(Radius)
    local ClosestDistance = Radius or math.huge;
    local Player = nil;

    for Index, Value in Players:GetPlayers() do
        if not (Value == LocalPlayer) then
            local Character = Value.Character;
            local HumanoidRootPart = Character and Character:FindFirstChild("HumanoidRootPart");

            if not HumanoidRootPart then continue; end;
            if Value:GetAttribute("Team") == LocalPlayer:GetAttribute("Team") then continue; end; -- stupid team check but thats what the game uses 

            local Position, Visible = Camera:WorldToViewportPoint(HumanoidRootPart.Position);
            local Distance = (Vector2.new(Position.X, Position.Y) - UserInputService:GetMouseLocation()).Magnitude;

            if not Visible then continue end;

            if Distance < ClosestDistance then
                ClosestDistance = Distance;
                Player = Value;
            end;
        end;
    end;

    return Player;
end;

RunService.Heartbeat:Connect(function()
    Closest = GetClosestPlayer();
end);

local Old; Old = hookfunction(Modules.Shoot.fire, function(Arguement1, Origin, Direction, ...)
    if (Closest) then
        local BonePosition = Closest.Character.Head.Position;
        Origin = BonePosition + Vector3.new(0, 0.05, 0); -- fake wallkbang
        Direction = CFrame.new(Origin, BonePosition).LookVector.Unit * (BonePosition - Origin).Magnitude;
    end;
    
    return Old(Arguement1, Origin, Direction, ...)
end);

Features & Information

silent aim + wallbang (somewhat)
#silent aim#open source#opensrc#opensource#silentaim

Community Comments (4)

SimpleScripterSimpleScripterNov 13, 2024(edited)

Very good keep I up

SimpleScripterSimpleScripterNov 13, 2024(edited)

Make more silent aim and wallbang scripts like this pls

kylosillyykylosillyyNov 13, 2024(edited)

You should make a silent aim for aimblox 👍

KemxtKemxtNov 14, 2024(edited)

THIS SHXT DONT WORK

More Scripts for Airsoft Battles