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

How do you color Fire and PointLight in "value" form?

So I am trying to edit the effects of the All Seeing Sentry and it works alright, but how do you write out the color in this value form?

	Create'Fire'{
		Size = 5,
		Color = ??? <
		Heat = 7,
	},
	Create'PointLight'{
		Brightness = 10,
		Color = ??? <
		Range = 10,
	},

1 answer

For the color. You would use a BrickColor() function. Such as: IF you wanted green fire you would do:

local fire = Instance.new("Fire")
fire.Color = BrickColor.new("Bright green") -- Brick colors are case sensitive, be careful.
fire.Size = 5
fire.Heat = 7

3 comments

0

There's an error. It's telling me to put a } bracket to close the { of my code near the =...

0

Uh, I'm pretty sure you would use Color3.new(), not BrickColor(). The only thing to keep in mind is that Color3 values in scripts have to be fractions between 0-1. so for orange: Color3.new(255/255, 150/255, 0)

0

I have tried that too, but it still doesn't seem to work.

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