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

How do I make the screen fade from black to the game when entering the game?

I'm trying to find a way so that when I enter my game, the screen starts black, then slowly turns transparent so you can see the game. Once the screen is fully visible, the script destroys itself. Is there anyway someone could help me with this?

1 answer

Well you can just do that by making a black frame's transparency set to 1 when the player loads in. Here's how!

But, next time, please try to make an attempt by using your own code instead of asking for someone to do it for you. That's not the point of the website. Nonetheless, I have posted the code here.


--assuming this is a local script inside a frame the covers the whole screen, is black, and is not transparent


game.Players.PlayerAdded:Connect(function(plr) --plr being the player, this checks when the player has loaded in
	script.Parent.Visible = true -- I assume you want this to be invisible while you work on the game, so this sets it back to visible for you 
	for i = 0, 1, 0.1 do -- 0.1 is how fast the counter will count to one. change this as you desire
		wait(0.1) -- change this as you desire
		script.Parent.Transparency = i
	end
	script.Parent.Visible = false -- hides it.
end)


-- MakeYourEscape

If this helped, please upvote this answer. If it didn't, please leave a comment.

4 comments

0

When I set the script inside of the frame it is not doing anything? Do I need to play the game in roblox for it to work? This is currently inside of a frame that is pure black, the script is a local script as you said.

0

Please don't beg for rep.It enrages me when people do.

0

Beg for rep? What?

0

You're fucking retarded, nothing in this post asks for rep.

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