I put a script into a gui so when you click it, the gui turns red. The problem is it instead turns white, what have I done wrong?
gui=script.Parent function clicked() gui.BackgroundColor3=Color3.new(255, 38, 96) end script.Parent.MouseButton1Click:connect(clicked)
Color3 values have to be a number between 0 and 1. If you use the scale of 255, you have to divide each red, green and blue value by 255 to get it to the colour you want it.
gui=script.Parent function clicked() gui.BackgroundColor3=Color3.new(255/255, 38/255, 96/255) --Dividing each red, green and blue value by 255 to get a number between 0 and 1. end script.Parent.MouseButton1Click:connect(clicked)
I think that color3 may be wrong, also you Can do BrickColor.new("Colorname").Color < that turns it into a color3 value.
So try BrickColor.new("Bright red").Color