Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

ImageColor3 isnt changing color in script?

Asked by 7 days ago

Hello, i am basically making a ui that leads u to ur personal Journal. I want to make a color selection system that the chosen color is the color of the Journals background (ImageColor3), Problem is it doesnt change, or at least not to the correct color. I have no idea why this isnt working, it seems like it should to me but then again i am a starter scripter..

Here is the script, remember that it aint finished yet but this is a problem i ran into while making it

local Journal = game.Workspace.Journal
local JournalUi = script.Parent.JournalUI
local color = script.Parent.ColorSelection
local button = script.Parent.Text

button.MouseButton1Click:Connect(function()
    color.Visible = true
        color.Pink.Button.MouseButton1Click:Connect(function()
            color.Visible = false
            JournalUi.ImageColor3 = Color3.new(color.Pink.BackgroundColor3)
            JournalUi.Visible = true
        end)
end)

here is an video of what it currently does, https://imgur.com/a/i4bbEHV

Tips and or questions are welcome, Hope someone figures it out, Thank u for reading.

2 answers

Log in to vote
0
Answered by 7 days ago

I think you might want Color3.FromRGB, not Color3.new

0
I'll try it, if it works then ill accept ur answer! Thank u for responding ;D DFROBUXX 13 — 7d
0
Gave me an error, https://imgur.com/a/ffC9mmI DFROBUXX 13 — 7d
0
lowercase f, my bad iiMegabyteGaming 332 — 7d
Ad
Log in to vote
-1
Answered by 7 days ago
Edited 7 days ago

change

 JournalUi.ImageColor3 = Color3.new(color.Pink.BackgroundColor3)

to

 JournalUi.ImageColor3 = Color3.fromRGB(255,255,255)  ----- change the 255,255,255 to the color you want for example blue would be (0,0,255)
0
you can get a color3 thing from coloring a part to the color you want and then you can find it in properties Killerbot712 47 — 7d
0
this isn't "explains it a bit more", this is just spoonfeeding. cry Fifkee 1961 — 7d
0
lmao Killerbot712 47 — 7d
0
oklol if you say so. Just trying to help somebody Killerbot712 47 — 7d

Answer this question