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

How to use the property table defintion for TweenService:Create() ?

I want to move the gui from the center to the left out of the screen and I have this script here:

local TweenTable = {

}
local tweeninf = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, false, 0)
local tweened = TweenService:Create(Frame5, tweeninf, TweenTable)

tweened:Play()


How do I use the property table definition for gui's?

1 answer

✓ Accepted answer

It needs to have the property and the value like so:

{CFrame = CFrame.new(0,0,0)} -- (property) = (value)
{Value = 10} -- yes it can be used for tweening values

Hope this was explained well Edit: Quick note: you don't define it like object.Value, you just put the property's name (Value).

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