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)
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)
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