Whenever I use this script it changes the value of the lights color to some random number, not the numbers I have set, why is this?
for _, light in pairs(game.Workspace:GetDescendants()) do local surfaceLight = light:FindFirstChild("AdministrationLight") if surfaceLight then surfaceLight.Color = Color3.new(255, 255, 255) end end
You are using Color3.new() It is now required to use Color3.fromRGB() when doing RGB stuff.
Use this code:
for _, light in pairs(game.Workspace:GetDescendants()) do local surfaceLight = light:FindFirstChild("AdministrationLight") if surfaceLight then surfaceLight.Color = Color3.fromRGB(255, 255, 255) end end
If you have any questions feel free to ask.