I have already used remote events to turn off the lights with the first click, but how do I turn them back on with a second click?
Here is the local script I put in StarterCharacterScripts ~~~~~~~~~~~~~~~~~
local trigger = game.Workspace.Trigger local clickDetector = trigger.ClickDetector local rep = game.ReplicatedStorage clickDetector.MouseClick:Connect(function() rep.LightsOff:FireServer()
end)
Here is the script that is receiving the event ~~~~~~~~~~~~~~~~~
local rep = game.ReplicatedStorage
rep.LightsOff.OnServerEvent:Connect(function()
script.Parent.PointLight.Enabled = false
end)

2 comments
It does work, thanks man!
For sure! Glad I could help :)