Is the ‘script.Parent.Parent.RoomFrame.LeaveButton’ a button? Make sure you didn’t accidently create a Textlabel. Also, is the ‘script.Parent.Parent.RoomFrame.LeaveButton’ correct? Maybe you added the function to another button?
Bro, the leave button is inside a frame, and when I add a script inside that frame with the button, it works, but when I try to get the button from a local script that is not inside the same frame, it does not work. There are no errors, but idk.
Bro, did you read what I typed? I said that when I get the button from a script that is inside the same frame as the button, it works, but when I move the button to another frame that is not the same as the button, it does not work.
You didn’t change the buttons path to the place you moved to, replace the location of the button in the local script to the correct location of the button after you moved it
Bro, the path is correct. If it’s wrong, I’d get an output error. Nothing is wrong; everything is fine, but the problem is that the mousebutton function is not getting called.