I want to create an obby with this thing, but i dont know how to make it. Please help heres an example https://www.youtube.com/watch?v=ffrejmGKFnE&feature=youtu.be
✓ ANSWER ACCEPTED
How to create a fade in-out transition effect (gui), if a player touches a part?
1 answer
✓ Accepted answer
Simply take a black image, place it over the entire screen, set it to be invisible, and slowly decrement its transparency when you want to fade-in, or slowly increment it when you want to fade-out.
Instructions:
Insert a ScreenGui into the StarterGui if there isn't already one there.
Insert a ImageLabel into the ScreenGui.
Change the dimensions of the ImageLabel until it covers the entire screen.
Set the BackgroundTransparency of the ImageLabel to one.
Insert a blank localscript into the ImageLabel and paste the code below into it.
FADE_SPEED = 1; function FadeIn() while (script.Parent.ImageTransparency < 1) do script.Parent.ImageTransparency = script.Parent.ImageTransparency + FADE_SPEED/30; wait(FADE_SPEED/30); end end function FadeOut() while (script.Parent.ImageTransparency > 0) do script.Parent.ImageTransparency = script.Parent.ImageTransparency - FADE_SPEED/30; wait(FADE_SPEED/30); end end wait(3); FadeIn(); wait(3); FadeOut();
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
This fits in a comment, so use comments!!!
but in a script
Well that's for you to figure out.