script:
local plr = game.Players.LocalPlayer
local ts = game:GetService("TweenService")
local plrgui = plr.PlayerGui
local S = plrgui.ScreenGui
local F = S:WaitForChild("Frame")
local T = F:WaitForChild("TextLabel")
local tinfo = TweenInfo.new(2)
local tss = ts:Create(F,tinfo, {UDim2.new(0,230,0,1)} )
print("worknggg")
wait(5)
tss:Play()
help pls 
To create a new tween, you have to specify which specific property you want to be tweened, then give a value for it, so you supply a dictionary to the :Create()
function call.
local tss = ts:Create(F,tinfo, {Size = UDim2.new(0,230,0,1)} )
You can tween multiple properties in the same tween as well.
2 Likes
never mind i got through tysm
1 Like
Kind of. I don’t want to confuse you, but I’d recommend learning about tables/dictionaries in Lua to help get a better understanding of how this works.
In my example, Size
is the key, and the UDim is the value for the key. Key-value pairs are also called dictionaries, whereas tables can be referred to as index-value pairs (indexes being exactly the same as keys, except they’re integral/number data)
Numbed down, you just need to define the names of the properties you want to tween, and each one is given a value.
1 Like