I'm new to scripting, so how can I make it so that when a player closes a screen GUI welcoming them into the game, the whole screen fades out and into the game?
- button = script.Parent
- num = 85
- while true do
**for** i = 1, num **do**button.BackgroundTransparency = 0.5+i/num/2**wait**()**end****for** i = 1, num **do**button.BackgroundTransparency = 1 - i/num/2**wait**()**end**- end
The script I currently have is underneath: StarterGUI > ScreenGUI > Frame > TextButton > LocalScript. Is this wrong? It seems to only be working on the button, not the whole screen, and it is in a loop. How can I fix this so that the whole screen fades in once the button is pressed?
