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

How do i make blue and red with color3?

Asked by 10 years ago
script.Parent.MouseButton1Click:connect(function ()
    script.Parent.Parent.Parent.IsPlaying.Value = true
end)

r = 1
g = 1
b = 1

script.Parent.MouseEnter:connect(function ()
    script.Parent.TextStrokeColor3 = Color3.new(r/0, g/0, b/255)  -- i want  to be blue
end)

script.Parent.MouseLeave:connect(function ()
    script.Parent.TextStrokeColor3 = Color3.new(r/255, g/0, b/0)  -- i want  to be red
end)

Hello, i want to know how do i get red and blue with Color3, on line 10 i want that to be blue, but its giving me yellow, and on line 14, to be red, but im getting cian. And i already know that im not playing with CMYK, but looks like the game likes CMYK better then RGB :P. Please help me so i can get red and blue with Color3?

1 answer

Log in to vote
1
Answered by 10 years ago
local colorRed = BrickColor.Red()
local colorBlue = BrickColor.Blue()
local colorRedVal = colorRed.Color
local ColorBlueVal = colorBlue.Color

script.Parent.TextStrokeColor3 = colorRedVal
-- OR
script.Parent.TextStrokeColor3 = colorBlueVal

0
thx DragonOfWar900 397 — 10y
Ad

Answer this question