at a certain point in a game, i want these to flicker and i don’t “know” how to, well i know how to make one light flicker, but these are multiple lights and i need help figuring out how to get them all at once
local function toggleLights(bool)
for _, model in ipairs(workspace:GetChildren()) do
if model:IsA("Model") then
if model.Name == "Model" then --Change this to the models' names.
for _, light in ipairs(model:GetDescendants()) do
if light:IsA("Light") then
light.Enabled = bool
end
end
end
end
end
end
Here’s a short function that you can use to toggle all of the lights on and off.