local pl = game.Players.LocalPlayer local plc = pl.Character or pl.CharacterAdded:Wait() if pl.Backpack:FindFirstChild("Pistol") then pl.Backpack.Pistol.Parent = plc while true do wait(1.1) for _,v in ipairs(workspace.NPCs:GetChildren()) do if v:FindFirstChild("Head") and plc:FindFirstChild("Pistol") then local plh = plc:FindFirstChild("Pistol").Handle.Position local npcpo = v:FindFirstChild("Head").Position local res = (npcpo-plh).Unit if v.Humanoid.Health >= 0.1 then local args = { vector.create(plh.X, plh.Y, plh.Z), vector.create(res.X,res.Y,res.Z), v:FindFirstChild("Head"), vector.create(npcpo.X,npcpo.Y,npcpo.Z) } game:GetService("Players").LocalPlayer.Character:WaitForChild("Pistol"):WaitForChild("Fire"):FireServer(unpack(args)) end end end end end