This script I made changes ImageColor3 to White instead of the specified color? I tried this with multiple other colors; it still does the same thing. ImageColor3 is a valid property of the ImageButton.
while wait() do
for i,v in pairs (script.Parent.Parent.Parent.Parent.Parent.Parent:WaitForChild("dancesGui").dancesFrame.danceFrame.danceScrolling:GetChildren()) do
if v.Name == script.Name then
script.Parent.itemOwnedValue.Value = true
end
end
if script.Parent.itemOwnedValue.Value == true then
script.Parent.buyButton.Text = "Purchased"
script.Parent.ImageColor3 = Color3.new(0, 0, 213) -- Color changes
end
end

1 comment
Oh, I thought I wrote it in codeblock. I was in a rush when typing this. Thanks