I'm attempting to get a script that gets the last size of a GUI. The reason I need this is for a bar graph that randomly changes size. I already have the bar graph script, I just need a way to get the last value.
Script:
local r = Random.new()
local Bar = script.Parent.Bar
while true do wait(15)
Bar.Size = UDim2.new(r:NextNumber(0,0),r:NextNumber(0,613),r:NextNumber(0,0),r:NextNumber(34,34))
end
while true do wait(15)
--Script here is supposed to get the last size for Bar.
end

4 comments
I don't really understand what your asking but I notice you have 2 while loops in the same thread. They wont both run, so you should use a spawn function on the first while loop
You cant just read data that no longer exists, you'll need to store the value somewhere until you need it.
I think I've figured it out myself. Thanks for the help though!
Note: Instead of writing [self-solved] just write [SOLVED], it just makes it easier to recognise.