Ad
Log in to vote
1

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

Asked by 1 month 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 1 month 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 146 — 1mo
Ad
Log in to vote
0
Answered by 1 month ago
Edited 1 month ago

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

Answer this question