i know workspace.CurrentCamera.ViewportSize is the screen size, but how would i use it to place a button right under the screen so i can later tween it up? (im making a hotbar system)
You would use the Scale in UDim2. In UDim2, scale is a percentage (1 = 100%), and offset is extra pixels. Let’s say your screen was 1000 pixels tall. If you set the position to UDim2.new(0, 0, 0.5, 0) the gui will be at (0, 500) and if you change the scale of the Y position to 1 the gui will be at (0, 1000)
To answer your question, set the Y position to have a scale of 1 so it moves to the bottom of your screen.
Then to tween it up, I suggest keeping scale at one but giving offset a negative value to move it back into the screen.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.