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

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

Asked by 5 years ago

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.

0
lerp transparency TheluaBanana 946 — 5y
0
It shouldn't be `game.StarterGui.BlackFadeIn` it should be `game.Players.LocalPlayer.PlayerGui.BlackFadeIn` and as TheLuaBanana said, lerp transparency mixgingengerina10 223 — 5y

1 answer

Log in to vote
0
Answered by
Elixcore 1337 Moderation Voter
5 years ago
Edited 5 years ago

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.

Ad

Answer this question