Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 6 years ago

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)

0
accept answers creeperhunter76 554 — 6y

2 answers

Log in to vote
0
Answered by 6 years ago

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)

0
Thxxxx!!!!!! proPVPgamers_YT 40 — 6y
0
accept my answer please creeperhunter76 554 — 6y
Ad
Log in to vote
0
Answered by
FazNook 61
6 years ago
Edited 6 years ago

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

Answer this question