Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 2 years ago

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?

0
RemoteEvents could prove useful RAFA1608 543 — 2y

1 answer

Log in to vote
0
Answered by
SuperPuiu 497 Moderation Voter
2 years ago
Edited 2 years ago

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

Ad

Answer this question