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

Trying to get my screen to fade into the main game when entered?

Hey,

I am trying to make it so when you join the game, it starts out black, then it starts to fade into the main game. I have a general idea of how to do it, but I can't figure it out, it may be pretty simple, but I am dumb.. Help me please.

local gui = game.StarterGui.BlackFadeIn -- Name of the Gui

do on(PlayerEntered)
	
	repeat
	gui.Frame.BackgroundTransparency = 0.1
	until gui.Frame.BackgroundTransparency = 1
	
end

This is the script I think it would be? It might be completely wrong, I have no idea.

2 comments

0

lerp transparency

0

It shouldn't be game.StarterGui.BlackFadeIn it should be game.Players.LocalPlayer.PlayerGui.BlackFadeIn and as TheLuaBanana said, lerp transparency

1 answer

There are multiple things wrong with this.

1st. you are referencing StarterGui instead of PlayerGui

2nd. do on(PlayerEntered) is invalid.

3rd. you are setting the transparency once, not adding to it.

4th. you do not have a wait() so it will be instant.

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