How can I make something like this?

How can I make a frame where the player is able to drag around and move it to see different contents?
What i want is shown in this video:
https://www.youtube.com/watch?v=dzDTcbl-gVU

There’s a few ways to do it, but the simplest would be:
Have a frame with ClipsDescendants set to true. Then, inside that frame, create a much larger frame. This larger frame would then contain the contents that you want to be able to see.
In terms of the code, there are again a few different ways to do it.
One way would be to listen for the Button1Down event of Mouse and see how the X and Y properties of it change, then move your larger frame accordingly within the first frame . (there’s probably a userinputservice equivalent sorta thing)

2 Likes

thanks i used your suggestion but added a uidragdetector rather than a script to handle the frame position

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.