When an enemy dies, it is supposed to make a red part get created.
function onDied()
redgem = Instance.new("Part",game.Workspace.GemDropStorage)
redgem.Size = Vector3.new(1,1,1)
redgem.Material = "Neon"
redgem.BrickColor = BrickColor.new("Really red")
end
when i get a sword, and kill the enemy, the part doesent get created!
the enemy is a working humanoid that moves around

5 comments
but its not the player who is dying
https://gyazo.com/a70934f27a98ead749900eae905f49de that is who is dying. you kill him and it makes a part
@AndrewTheRoblox as long as your character has a humanoid when it dies it will fire the Died event
You can change the character variable, it was just an example
thx