How would I possibly make something like this in the most efficient way possible without adding a bunch of squares to a gui beforehand : I am not asking you to code a system for me, just help please.
you couldn’t have been more vague about what you’re referring to, but i guess its the background animation.
my fair guess is a gridlayout covering the entire screen and programatically tweening each frame in the grid to reduce size, in a sequence
What I would do is define how many boxes you want to have
local boxCount = 30
Then what I would do is get the screensize of the players screen, make sure to enable ignoreguinset or whatver its called. Get the size like this
local screenSize = screengui.aboslutesize
I dont fully remember how you got the size but its something like this
Then you use the boxcount to divide the pixels
--Make sure to round it up, i believe you need to do +.5
local pixelPerBoxX = screenSize.X / boxCount
local pixelPerBoxY = screenSize.Y / boxCount
then make a function that creates the boxes
local function createUiBox()
Then for loop diagonaly and height too
and then when the boxes are made, you can then make then tween uicorner and go inward or something along that, sorry for this bad reply. I hope this helped maybe a little bit, I understand if you didnt fully understand my thinking. I hope someone can provide a better mroe indepth way of doign this
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.