LocalScript not detecting value in an if statement

you can use the ValueChanged event to detect changes to the MusicON value. by listening to this event, the LocalScript will be able to react and update the sound playing based on the updated value, resolving any timing mismatch between the value update and the script execution.

1 Like