#drop money on death NPC

11 messages · Page 1 of 1 (latest)

naive kestrel
#

there is a yt vid about it techwithmike

#
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
naive kestrel
#

its the same but u would have to rescript it to the game

naive kestrel
#

u could do with a tool

reef pendant
#

how

#

@naive kestrel

#

oh ok ok NP

#

i make this now

#

Thanks