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

How do i make a spotlight color the same as the bricks color?

Asked by 4 years ago

This is the code i have

script.Parent.BrickColor = script.Parent.SpotLight.Color.

3 answers

Log in to vote
1
Answered by 4 years ago
script.Parent.SpotLight.Color = script.Parent.Color

Hope this helps :)

Ad
Log in to vote
0
Answered by
JesseSong 3916 Moderation Voter Community Moderator
4 years ago
local Spotlight = script.Parent

Spotlight.Color = Color3.fromRGB(25,25,25) -- Numbers represent color values change this to run color.
Log in to vote
0
Answered by 4 years ago

Hi EyeDontLie!

We can get the Color3 of the part and change that to the spotlight color.

local myColor = script.Parent.Color

script.Parent.SpotLight.Color = Color3.fromRGB(myColor)

Hope I helped! LennyPlayzYT

Answer this question