local balloonlight = script.Parent.PointLight
local randomnumber = math.random(4)
if randomnumber == 1 then
script.Parent.BrickColor = BrickColor.Blue()
balloonlight.Color = Color3(61, 87, 149)
end
if randomnumber == 2 then
script.Parent.BrickColor = BrickColor.Red()
balloonlight.Color = Color3(255, 0, 0)
end
if randomnumber == 3 then
script.Parent.BrickColor = BrickColor.Yellow()
balloonlight.Color = Color3(255, 233, 54)
end
if randomnumber == 4 then
script.Parent.BrickColor = BrickColor.Green()
balloonlight.Color = Color3(33, 86, 27)
end
This script is supposed to change the color but it is always green, and the pointlight never changes color.
Thanks, RadioactiveSherbet

4 comments
But how do I make the pointlight change color?
Fixed.
thx
Still doesnt work :(