Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

NPC fading on death not working?

Just a line from my script, but the fading isn't working, help?

Edit: Added ends to script snipit

    dummy.NPC.Died:connect(function()
	wait(5)
for i,v in pairs(dummy:GetChildren()) do
	if v:IsA("Part") then 
	for i = 0,1,0.1 do
	v.Transparency = i
wait()
end
	end
		dummy:Destroy()
			end	
				end)

ignore dummy, its a part of my script. Problem: It just instantly disappears.

1 answer

I know I'm not an expert, but as far as I know you could use a for i loop?

This discussion is preserved as it was. New answers, comments, and votes are closed.