script.Parent.MouseButton1Click:Connect(function(plr)
local colors = plr:WaitForChild("ColorsUnlocked")
if colors.Green.Value == true then
plr.CurrentColor.Value = Color3.fromRGB(0,255,0)
end
end)
so someone asked me if CurrentColor exists. Yes, it does, however i didnt get more info. any help appreciated.

9 comments
i think the problem is with the detection
for testing purposes, remove the if statement and try making the color3value change
okay let me try
still nothing
I think i know why it's not working, passing the player as a parameter in a mousebutton1click event won't work
hmm... could be possible, do you know how could i make it work in a different way?
fixed it, i made a script that clones the gui from the script into playergui, and the player is script.Parent.Parent.Parent.Parent
What is the classname of the CurrentColor.Value? Is it a
color3value