Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you read this script? -answered-

Asked by 8 years ago

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

Log in to vote
0
Answered by 8 years ago

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

Ad

Answer this question