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

How would you make a GUI visible only when touching a brick?

Asked by 4 years ago

title explains it all, i want to make a GUI appear ONLY when they are touching the brick so the moment they leave the brick the GUI disappears anyone know how?

2 answers

Log in to vote
0
Answered by 4 years ago

Use Touched and TouchEnded events. I suggest using a LocalScript. Touched fires whenever and the hitbox of the part provided and another hitbox overlap. In other words, the Touched event fires when the part gets touched by another object. TouchEnded fires when a hitbox leaves the provided part's hitbox. In other words, the TouchEnded event will fire whenever an object stops colliding with the part.

0
thx fam Pitched_mobile 191 — 4y
Ad
Log in to vote
0
Answered by
Ascarson4 138
4 years ago
Edited 4 years ago

Here's a tutorial on youtube: www.youtube.com/watch?v=6r_PBSXzOmI

Answer this question