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

3 comments
One problem is the Iron parent is set to the Zombie character, which is deleted after it dies. Make game.ReplicatedStorage.Iron:clone().Parent = script.Parent to say game.ReplicatedStorage.Iron:clone().Parent = script.Parent.Parent and see what happens.
ok
thanks