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

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

Asked by 5 years ago

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

Log in to vote
-1
Answered by 5 years ago

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.

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. Yosufgamer -7 — 5y
0
Please don't beg for rep.It enrages me when people do. turtle2004 167 — 5y
0
Beg for rep? What? Yosufgamer -7 — 5y
0
You're fucking retarded, nothing in this post asks for rep. Yosufgamer -7 — 5y
Ad

Answer this question