Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Whats wrong with it ? (SpotLight.Color3)

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)

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.