Okay ik this sounds silly. But I'm trying to make a bench. The bench has 4 seats. And I've made a gui that tells the player to press E to sit down on the bench. The problem is that the gui keeps staying up when the player is seated. So what I want is for the game to detect that I've sat down on one of the four seats and once the game detects that I've sat down I want the game to run this script "script.Parent.Parent.Visible = false" By the way. The script to execute this has to be in the same folder as the "script.Parent.Parent.Visible = false" script is in. Ik this question might be hard to understand but if you have any problems understanding then please comment and I'll try to explain better.
if humanoid.Sit == true then gui.Visible = false end