#drop money on death NPC
11 messages · Page 1 of 1 (latest)
local ammo = script.Parent
local ReplicatedStorage = game:GetService('ReplicatedStorage')
local ammoEvent = ReplicatedStorage:WaitForChild('AmmoPickup')
local function ammo_pickup(otherPart)
local humanoid = otherPart.Parent:FindFirstChild('Humanoid')
local player = game.Players:FindFirstChild(otherPart.Parent.Name)
if humanoid and player then
local gun = humanoid.Parent:FindFirstChildWhichIsA('Tool')
if gun then
ammoEvent:FireClient(player)
ammo:Destroy()
end
end
end
ammo.Touched:Connect(ammo_pickup)```but this is for a tool
i want drop money no tool
its the same but u would have to rescript it to the game
ok thanks
u could do with a tool