Hi I want to know why this script doesn't work?!
H = script.Parent.Humanoid.Health if H == 0 then game.ReplicatedStorage.Iron:clone().Parent = script.Parent script.Parent.Iron.Postion = script.Parent.Torso.Poition end
I have a zombie and when you kill it a brick is put into Workspace from replicated storage and its position is the zombies torso
Doesnt work tho plz herlp
Use the Died event to determine when the zombie dies.
local zombie = script.Parent local H = zombie.Humanoid H.Died:connect(function() local iron = game.ReplicatedStorage.Iron:Clone() -- "clone" is deprecated so we avoid using it (no caps) iron.Parent = zombie iron.Postion = zombie.Torso.Poition end)