FerbZides
(FerbZides)
August 15, 2020, 11:28am
1
im trying to tween the position of the ui by the y axis
here is the code
PlayMenu:TweenPosition(UDim2.new(FramePositions.List.PlayMenuPos.In), "In", "Quad", .5, true)
I’ve actually quite did some research before posting and it still doesn’t work
1 Like
FerbZides
(FerbZides)
August 15, 2020, 11:32am
2
does it let tween numbers inside a table if not then how to unpack a table?
FerbZides
(FerbZides)
August 15, 2020, 11:45am
3
i did everything i can but i cant fix it
if anybody can come here to tell me how to fix it it appreciate it for now imma just do it tommorow again
NilFloat
(NilFloat)
August 15, 2020, 11:51am
4
TweenPosition is used for tweening a GUI object to selected UDim2 position. Example:
PlayMenu:TweenPosition(UDim2.new(0,0,0,0)
You have to declare: xScale,xOffset,yScale,yOffset.
Quwanterz
(Quwanterz)
August 15, 2020, 11:57am
5
Is the “In” a GUI? FramePositions.List.PlayMenuPos.In If so, you can do:
PlayMenu:TweenPosition(FramePositions.List.PlayMenuPos.In.Position, "In", "Quad", .5, true)
FerbZides
(FerbZides)
August 15, 2020, 12:13pm
6
there is no udim2 so thats why im using it
also its a dictionary with numbers
FerbZides
(FerbZides)
August 15, 2020, 12:13pm
7
it has 4 offsets and scale inside a table
Let me clarify something, you can only enter a UDim2 value for this purpose, ie. it has to be a UDim2.new(). You cannot use a table.
FerbZides
(FerbZides)
August 15, 2020, 12:23pm
9
i tried but still no luck i need a fix to it
You said FramePositions.List.PlayMenuPos.In is a table right?
FerbZides
(FerbZides)
August 15, 2020, 12:31pm
11
it is a number dictionary containing udim values
You cannot provide UDim2.new with a dictionary like you did here:
UDim2.new(FramePositions.List.PlayMenuPos.In)
Instead make FramePositions.List.PlayMenuPos.In a UDim2 value:
FramePositions.List.PlayMenuPos.In = UDim2.new(1,0,1,0) or whatever values you are using.
FerbZides
(FerbZides)
August 15, 2020, 12:38pm
13
well i did that method and it still didn’t work
Are you sure you’ve got the values right? Also would you mind sharing the whole code?
Yes, is it a GUI? Otherwise you will have issues!