Does anyone know how to make a GUI control a light

I was wondering how to make a light turn off and on by using a GUI that only I could control.

If you want a UI to control a light in workspace you can use RemoteEvents.

Make a UI with a button to toggle the light. Then use RemoteEvents to communicate with the server. From a serverscript it will control the light, using its properties e.g. .Enabled = false

If you need any more help then just ask me. :wink:

he mentioned that only he wants to control it

you fire an event with argument the player instance to the server, check if the userid of the given player is equal to yours and turn on the light using properties.

1 Like

to look cool tween the brightness of the light

1 Like