I wanted to change the size when i click the text button i clicked the first time and i want to change the color when it's clicked second time but i don't know how to do?
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Size = UDim2.new(0,100,0,25)
script.Parent.BackgroundColor3 = Color3.new(1, 0.0313725, 0)
end)

1 comment
The methodology is correct here, but you're going to have to change the instructions inside both logic statements in order for this to work.