Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by 3 years ago

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

Log in to vote
1
Answered by 3 years ago
Edited 3 years ago

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).

Ad

Answer this question