I'm trying to make it so if you kill the npc with the script inside, a gui will pop up. But nothing is happening, help!
local humanoid = part.Parent:FindFirstChild("Humanoid")
if
humanoid.Health == 0
then
game.StarterGui.ScreenGui.Frame.Visible = true
Thanks if you can help, I am also a bit of a noob, so go easy on me!

1 comment
I agree.