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

How to Make Frames Move On Click? [SOLVED]

Asked by 4 years ago
Edited 4 years ago

I finally got the idea instead of disabling is putting them to a place where the player can't see the frame, but I'm just wondering. Is there a CFrame for frames?

0
i think its called UDIM2 i'm not sure... maxpax2009 340 — 4y
0
Is it the same as CFrame except for Frames? PAYDAYGAMING0942 10 — 4y
0
You want made a Frame in a ScreenGui? If you want move a frame in a ScreenGui you need a LocalScript and use a UDim2 because CFrame is just for move a Part. NiniBlackJackQc 1562 — 4y
0
I think you should put textbutton / Imagebutton in the frame Nguyenlegiahung 1091 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

To move a Frame in a UI you need to use UDim2

Frame.Position = UDim2.new (Scale, Offset, Scale, Offset)

You can use TweenPosition to tween the Frame.

Frame:TweenPosition(UDim2.new (Scale, Offset, Scale, Offset), 'Out', 'Linear', 1, true)

Information to TweenPosition

Use a LocalScript because this action require the informations of the client.

0
Thank you so much! I've been stuck on this for a day. PAYDAYGAMING0942 10 — 4y
Ad

Answer this question