Expected ')' to close '(' at column 20, got '*='

So I’ve just been trying to fix my button animation script, and this error randomly popped up. I have no idea how to fix it, or what causes it. Heres my script.

for i,button in pairs(script.Parent:GetDescendants()) do
	if button:IsA("TextButton") or button:IsA("ImageButton") then
		button.Activated:Connect(function()

		end)
		button.MouseEnter:Connect(function()
			script.Parent["ui hover"]:Play()
			button:TweenSize(button.Size *= 1.1) -- this line is the error
		end)
		button.MouseLeave:Connect(function()
			script.Parent["ui hover"]:Play()
			
		end)
	end
end

I believe its because TweenSize takes multiple parameters

well, I was in the middle of writing the tween so it may be that.

You are trying to set its Size, remove the equal sign

2 Likes

Oh yeah, thats the solution
I wrote it in roblox studio and just did your solution, and the error went away

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.