Screen Transition

I want to make my screen fade black and then back. I’m thinking of using a tween to change the transparency of a gui that covers the screen and then back, but I’m not sure how to do that and wondering if anyone can help. If there is a better option please tell me

You’re on the right track. Put a black colored Frame over the whole screen and tween its BackgroundTransparency from 1 (invisible) to 0 (pitch black) over whatever time you want the fade to happen, wait if you want then tween back.

You would want to use TweenService

local GUI = -- Give Path
local Info = TweenInfo.new(1) -- Amount of time for it to end and complete.
local Tween = game:GetService("TweenService"):Create(GUI,Info,{Transparency=1}) 
-- This will change its transparency in a specific amount of time.
Tween:Play() -- This plays the animation (Tween)

Please dont just copy and paste. Actually learn it.
TweenService:Create (roblox.com)

1 Like