On the scripting tutorial the man said to do this script with a text button with nothing else.This is what he said to do in the script.
button = script.Parent
blue = button.BackgroundColor3
red = Color3.new(1,0,0)
green = Color3.new(0,1,0)
function changeColor()
if button.BackgroundColor3 == blue then
button.BackgroundColor3 = red
elseif button.BackgroundColor3 == red then
button.BackgroundColor3 = green
else
button.BackgroundColor3 = blue
end
end
button.MouseButton1Click:connect(changeCÂolor)

3 comments
Put the code in the codeblock please.
How?
Nevermind i found out how