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

¿How to change the color of a "Point Light" through a script?

How do I solve this?

Try in various ways and nothing... Please, someone who can help me, I can not change the color of that light through a script

game.Workspace.Luz.PointLight.Color = Green()

Luz is one block on the workspace (I speak spanish)

1 comment

0

accept answers

2 answers

✓ Accepted answer

You'd want to learn about data types. In this case, the Color property of the PointLight object uses a color3. game.Workspace.Luz.PointLight.Color = Color3.fromRGB(0,255,0)

2 comments

0

Thxxxx!!!!!!

0

accept my answer please

You’d have to change Green(). For ease purpose, you can just input Color in string and get it converted into Color3.

local brick = BrickColor.new(“Medium green”)
game.Workspace.Luz.PointLight.Color = brick.Color

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