I’ve been at it for a few hours now and I need some help.
I’m trying to test out a function where the LocalScript fires a command to play a sound under the same hierarchy and is supposedly doing what it’s programmed to do… in studio mode.
The script firing the command
The sound playing in the ‘DialogBox’ parent
I tried testing it in a real server. Everything works perfectly fine the script runs the way it should (both in studio and on a dedicated server) until the ‘play sound’ code is fired. I keep getting this error message and it’s starting to get a little ridiculous.
I just want to know why this is happening and what I can do to to overcome this error. Thanks!
@nicemike40 There is another script that enables the local script and makes the main frame visible when a button is clicked. But it has nothing to do with the error.
Localscripts cannot access certain things in workspace the last I checked. Have you tried placing the sound under the local script? Another thing you may want to consider is when you are making the Gui not visible. I’m not entirely sure but this may have an effect on it. Try making it play before the gui closes.