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

How do I make a GUI to cover the whole screen when a part is touched?

Asked by 6 years ago

I want to make it so when a player touches a part (for example, a portal); I want a GUI to pop-up onto the entire screen to make the screen fade to white or black, and then after a few seconds, it fades and disappears. How do I do this?

1 answer

Log in to vote
0
Answered by
Avigant 2374 Moderation Voter Community Moderator
6 years ago

Try the Humanoid.Touched event, and do this all client-side. Ignore touched requests if there is already a GUI animation in progress:

http://wiki.roblox.com/index.php?title=API:Class/Humanoid/Touched

Make GUI visible, use a loop or tween the transparency, and make it disappear.

Ad

Answer this question