I really suck at scripting but how do I make it so when an npc is killed,a block that is transparent becomes non transparent and reappears. For example, when I kill an npc, I want this checkpoint to appear.
I think I have the script but I don't know how to use it.
NPC.Humanoid.Died:Connect(function()
part.Transparency = 0
end)

3 comments
Thank you very much!
How is this the accepted answer, you literally perform an if check for the humanoid health whilst if he's dead his health is already 0...
It completes the same task. The if statement is unnecessary tho but it has little to no interference with the script.