#How to make a GUI scale based on variables

1 messages · Page 1 of 1 (latest)

hallow grove
#

So, no matter the amount of variables, in this game, the counter changes based on how much enkephalin you can get from an abnormality, how do i replicate this?

zenith crater
hallow grove
#

🤔

#

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

zenith crater
#

one sec

hallow grove
#

figured out how to make it divide but how should i go about resetting it and adding the counters

zenith crater
#

i'm legit trash at explaining

hallow grove
zenith crater
#

and what game is this maybe if i played it i could understand

hallow grove
#

tuantu's lobotomy coorporation

#

but

#

above that box, and the meter, based on whether the work was successful or not

zenith crater
#

which bar am i looking at specifically

hallow grove
#

the bar with the box below it

#

and it says

#

"+10"

zenith crater
#

ah

#

you want it to fill up like cubes?

hallow grove
#

based on whether if you succeeded or not, it'll add a counter gui inplacement, which is what im trying to do

hallow grove
zenith crater
#

i get the idea

hallow grove
#

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

zenith crater
#

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

hallow grove
#

kk

mossy solar
#

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

zenith crater
# hallow grove kk

this may help, when scaling the cubes on the y axis set the anchor point on y to 1, it will fit better

jovial auroraBOT
#

studio** You are now Level 7! **studio

zenith crater
#

hope it helps