Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make a light go on/off on a GUI button click and also play a sound when clicked?

How do I make a light go on/off on a GUI button click and also play a sound when clicked?

Okay, I am trying to make the whole building go red and start playing a alarm sound, does anyone have a script for it?

1 comment

0

RemoteEvents could prove useful

1 answer

✓ Accepted answer

Well, you have to listen to MouseButton1Down, then fire a remote event. Make a script that will listen for remote event being fired then use :Play() and use if to check if light is on/off

This discussion is preserved as it was. New answers, comments, and votes are closed.