I've worked on Roblox studio for about a few weeks. My script is like this:
repeat wait() until game.Loaded local But = script.Parent function Clicked() for i = 1,255,1 do But.BackgroundColor3 = But.BackgroundColor3 + Color3.new(i,0,0) wait(0.01) end But.BackgroundColor3 = Color3.new(0,0,0) end But.MouseButton1Click:Connect(Clicked)
And the error output:
......attempt to perform arithmetic on field 'BackgroundColor3' (a userdata value)
What happened? Please help me.