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

How do you read this script? -answered-

This skill may help me adapt and understand scripting when I read other people's script. Let's start with this script this website helped me write a while back

local Player = script.Parent.Parent.Parent.Parent.Character.Humanoid
local DeathScreen = script.Parent

Player.Died:connect(function()
	wait(2.5)
	for transparency = 1, 0, -0.1 do
		wait (.1)
		DeathScreen.BackgroundTransparency = transparency
	end
end)

I know that when a player dies, the GUI will fade to opaque. However, what I DON'T understand and want to tweak is

	for transparency = 1, 0, -0.1 do
		wait (.1)
		DeathScreen.BackgroundTransparency = transparency

I know this does the fading, but I want to tweak it to make it smoother, but I don't know what they heck it's doing (fading, obviously. But I want to know where the fading is happening , if you know what I mean)

1 answer

I found out where and how to make the transition smoother. I just changed the wait time to 0.01

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