I am trying to make it when you click a button, it changes the color of the text. I've tried many scripts and I am getting really upset and angry with it. There are no YouTube videos on how to help. Please tell me what I did wrong in this code!
script.Parent.MouseButton1Click:Connect(function(onClick)
script.Parent.TextColor3 = Vector3.new(0,0,0)
script.Parent.Parent.Redeem.TextColor3 = Vector3.new(0,0,0)
script.Parent.Parent.TextBox.TextColor3 = Vector3.new(0,0,0)
script.Parent.Parent.Font.TextColor3 = Vector3.new(0,0,0)
script.Parent.Parent.Background.TextColor3 = Vector3.new(0,0,0)
script.Parent.Parent.Stroke.TextColor3 = Vector3.new(0,0,0)
script.Parent.Parent.SoonA.TextColor3 = Vector3.new(0,0,0)
script.Parent.Parent.SoonB.TextColor3 = Vector3.new(0,0,0)
script.Parent.MouseButton1Click:Connect(function(onSavage)
script.Parent.TextColor3 = Vector3.new(255,0,0)
script.Parent.Parent.Redeem.TextColor3 = Vector3.new(255,0,0)
script.Parent.Parent.TextBox.TextColor3 = Vector3.new(255,0,0)
script.Parent.Parent.Font.TextColor3 = Vector3.new(255,0,0)
script.Parent.Parent.Background.TextColor3 = Vector3.new(255,0,0)
script.Parent.Parent.Stroke.TextColor3 = Vector3.new(255,0,0)
script.Parent.Parent.SoonA.TextColor3 = Vector3.new(255,0,0)
script.Parent.Parent.SoonB.TextColor3 = Vector3.new(255,0,0)
script.Parent.MouseButton1Click:Connect(function(onClix)
script.Parent.TextColor3 = Vector3.new(255,0,0)
script.Parent.Parent.Redeem.TextColor3 = Vector3.new(255,255,255)
script.Parent.Parent.TextBox.TextColor3 = Vector3.new(255,255,255)
script.Parent.Parent.Font.TextColor3 = Vector3.new(255,255,255)
script.Parent.Parent.Background.TextColor3 = Vector3.new(255,255,255)
script.Parent.Parent.Stroke.TextColor3 = Vector3.new(255,255,255)
script.Parent.Parent.SoonA.TextColor3 = Vector3.new(255,255,255)
script.Parent.Parent.SoonB.TextColor3 = Vector3.new(255,255,255)
end)
end)
end)

4 comments
it didn't work :(
What's the error, and Color3.new, make sure it's capital
nevermint I found it :) thanks
You can also use Color3.fromRGB if you want to use 0 to 255.