I am trying to make a text label glide up. I need this for notifications and stuff but don't have the rest of the scripts yet, I am just trying to make it glide up.

The text label's properties that I changed are: Position = {0.5,0},{0.5,0}, AnchorPoint = {0.5,0},{0.5,0}, (and some other things like text and color and transparency) I tried using this script:

Gui = script.Parent
while true do wait ()
Gui.Position = Gui.Position + UDim2.new{0,0},{0.01,0}
end

strangely, the Gui does not move. However, when I tried

Gui = script.Parent	
Gui.Position =  UDim2.new{1,0},{1,0}

It worked just fine (Moved the Gui to the position)

I am confused. Do UDim2 value's work differently than other ones?

Some other things I tried included multiplying by UDim2 which gave an error (that I forgot)

5 comments

0

you didnt put the wait inside the while loop, and theres no space between "wait" and the parentheses

0

I can put the wait there if I want, that is fine, even recommended (by some). And spaces don't change anything

0

but really I Use while wait() do sometimes too

0

You didn't format the UDim2 correctly. Replace that with UDim2.new(xScale,xOffset,yScale,yOffset) (obviously, insert the appropriate integers/doubles as shown)

0

Remove the curly brackets!