Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

TweenSize error attempt to call a table value???

Ok so i am making a GUI that will change its size and I get the error Players.westleyaaj.PlayerGui.ScreenGui.Play.TextButton.Script:7: attempt to call a table value - Server - Script:7

Frame = game.StarterGui.ScreenGui.Play.Frame
Button = script.Parent
-------------------------------------------------------------------------------------------------
Button.MouseEnter:Connect(function()
	
	Frame:TweenSize(
		UDim2(0.022, 0,0.593, 0),
		"out",
		"Sine",
		.3,
		true
	)
end)

Button.MouseLeave:Connect(function()
	Frame:TweenSize(
		UDim2(0, 3, 0, 46),
		"out",
		"Sine",
		.3,
		true
	)
end)

1 answer

✓ Accepted answer

I am sure it is UDim2.new() and not UDim2

This discussion is preserved as it was. New answers, comments, and votes are closed.