#How to make a GUI scale based on variables
1 messages · Page 1 of 1 (latest)
current/max and scale (x or y)
not allowed to divide scale
🤔
Players.gamemaster5355.PlayerGui.EPcounter.Script:12: attempt to perform arithmetic (div) on UDim and number - Script:12
(test script)
oh wait
did sum wrong
still cant divide it tho
ok
one sec
figured out how to make it divide but how should i go about resetting it and adding the counters
i'm legit trash at explaining
kk
what you mean counters?
and what game is this maybe if i played it i could understand
see the uhhh example
tuantu's lobotomy coorporation
but
above that box, and the meter, based on whether the work was successful or not
which bar am i looking at specifically
based on whether if you succeeded or not, it'll add a counter gui inplacement, which is what im trying to do
✅
i get the idea
should i just, clone it all, but how would i delete all the counters after considering the last time i tried to do a "get by name" in another project i had to just use a diff method
should i try to find a way to do a get thing by name then delete based on its name after?
and should i be using clones to fill it up, or is there another method
well i could only think of just cloning equal sized cubes and just adding it while adjusting the position
you can also use an array to sort which cube is which number to ascend and descend easily
and for resetting just delete all clones
kk
hes trying to spawn those rectangles based on how much of a thing he has?
well i suppose you could spawn them in and stack them on top of eachother initially.
then do some math based on the maximum value and minimum value and move the cubes up accordingly
this may help, when scaling the cubes on the y axis set the anchor point on y to 1, it will fit better
alr
** You are now Level 7! **