Tween Service attempt to call a table value

local TS = game:GetService("TweenService")

local Frame = script.MainFrame

local CooldownFrame = Frame:Clone()
local Close = TS:Create(CooldownFrame,TweenInfo.new(0.05,Enum.EasingStyle.Cubic,Enum.EasingDirection.Out),{Size = UDim2(0.15,0,0.1,0)})

im getting 5th line “attempt to call a table value” error, but i dont get meaning and what is wrong

Are you SURE that the frame is a child of the script? Could you screenshot your gui hierarchy?

You are attempting to call UDim2, a data type. Did you mean to use UDim2.new() instead?

1 Like

image

ok i was so dumb, thanks it worked

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