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

For i = do statement ?

So i've done this to fade the head of a player smoothly, but I think it is happening too quickly so it just looks like it's instantaneous instead of a smooth fade to invisible.

Here is the block of code:

for i = 0,1, .1 do
				character.Head.Transparency = i
			end

If you could possibly explain this and help make it fade smoothly that would be great. Thank you.

1 answer

✓ Accepted answer

You need a wait. Without it, it runs as fast as it can, and as such looks instantaneous.

for i = 0,1, .1 do
	character.Head.Transparency = i
	wait(.1)
end

2 comments

0

Thanks so much!

0

No problem, if you want to mark the question as answered accept my answer (not required).

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