So ive been trying to make better colors with my lights and when i press the button it turns white instead of the color i set it to. :/
g1=game.Workspace.BMX12.Pan.Configuration.Red.Value g2=game.Workspace.BMX12.Pan.Configuration.Green.Value g3=game.Workspace.BMX12.Pan.Configuration.Blue.Value function onClicked() game.Workspace.BMX12.Pan.Tilt.LIGht.SpotLight.Color = Color3.new(g1/255,g2/255,g3/255) game.Workspace.BMX12.Pan.Tilt.LIGht.SpotLight.Enabled= true end script.Parent.ClickDetector.MouseClick:connect(onClicked)
Color3.new(g1/255,g2/255,g3/255)
The value 255,255,255 will always return white. If you want some useful colors here you go:
Bright Red = 170,0,0
Navy Blue = 0,0,127
Lavender = 170, 85, 255
Green = 0,255,0
If you want to find your own color go here: http://roblox.wikia.com/wiki/Color