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

How to Make Frames Move On Click? [SOLVED]

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?

4 comments

0

i think its called UDIM2 i'm not sure...

0

Is it the same as CFrame except for Frames?

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.

0

I think you should put textbutton / Imagebutton in the frame

1 answer

✓ Accepted answer

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.

1 comment

0

Thank you so much! I've been stuck on this for a day.

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