[👻EVENT] Dead Rails
8.6k Views
18 Executions

gun kill aura

Dead Rails
logs_7
logs_710 followers
2 years ago
Please login to perform these actions:

gun kill aura is a Dead Rails script for Roblox, uploaded to ScriptBlox on Mar 5, 2025.

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

made by wynnech <3 IF YOU WANT TO USE THIS IN YOUR SCRIPT PLEASE CREDIT ME

View Raw
-- discord.gg/d66H53XCsX

local Players = game:GetService("Players")
local Workspace = game:GetService("Workspace")
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local LocalPlayer = Players.LocalPlayer
local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart", 5)

local utility = {}
function utility.getEquippedTool()
    for _, tool in ipairs(Character:GetChildren()) do
        if tool:IsA("Tool") and tool:FindFirstChild("ClientWeaponState") then
            return tool
        end
    end
    return nil
end

function utility.getClosestNPC(maxDistance)
    local closestNPC, minDist = nil, maxDistance or 30
    for _, obj in ipairs(Workspace:GetDescendants()) do
        local root = obj:FindFirstChild("HumanoidRootPart")
        local humanoid = obj:FindFirstChild("Humanoid")
        if root and humanoid and humanoid.Health > 0 and not Players:GetPlayerFromCharacter(obj) then
            local distance = (HumanoidRootPart.Position - root.Position).Magnitude
            if distance < minDist then
                closestNPC, minDist = humanoid, distance
            end
        end
    end
    return closestNPC
end

function utility.reloadWeapon(weapon, state)
    local ammo = state:FindFirstChild("CurrentAmmo")
    if ammo and ammo.Value == 0 and not state.IsReloading.Value then
        ReplicatedStorage.Remotes.Weapon.Reload:FireServer(Workspace:GetServerTimeNow(), weapon)
        repeat task.wait() until ammo.Value > 0


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!