I’m trying to make an anti-exploit system and I decided that I want resizeable UI frames, like Adonis Admin. Is there a syntax or UIEffect that can make this happen?
Hello there. First, thank you for your question.
According to the Developer Hub (at developer.roblox.com). There is no UIEffect that can achieve what you’ve mentioned in the topic. However, you can achieve this by coding.
The code for the resizeable feature will need GuiObject.InputBegan. This is used to capture user input, either they started interacting with the Gui, or not.
When the user starts to interact the object (InputBegan fires), start to listen to the mouse movement, and then subtract the current mouse.X and mouse.Y by the UI’s Size.X and UI’s Size.Y respectively. Then, use the subtracted value, and apply the it to the UI’s size. However, there will be one problem – You did not set a minimum limit for the resizeable window feature, which means user can resize the window to 0,1,0,1 (literally a square of 1px*1px). To avoid this, you can use math.min.
By the way, considering the only way to do this is with coding, can you move this topic to the Scripting Support category? Thank you.