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

How to make this spawned pointlight have a different color?

Here is the code:

local heat=Instance.new("PointLight")
	heat.Range=20
	heat.Brightness=10

2 answers

The Color3 Scale goes by numbers out of 255.. Must be a fraction.

local heat = Instance.new("PointLight",Parent)
heat.Range = 20
heat.Brightness = 10
heat.Color = Color3.new(255/255,255/255,255/255)

Since 255/255 is equal to 1 whole then it can also be put as this;

heat.Color = Color3.new(1,1,1)

That would make the light white.

The first argument is Red, second Blue, third Green ~ RBG

Hope I Helped

+1

I presume it'd work by

local heat=Instance.new("PointLight")
    heat.Range=20
    heat.Brightness=10
    heat.Color=[255,255,255]

If that doesn't work, change the square brackets to your normal brackets. If that doesn't work, remove the brackets. If that doesn't work, wait for another response.

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