I'm making a game and I'm trying to make the bar at the top of the screen say different sentences (This I know how to do), but I want to make it so that it doesn't just change, it should fly smoothly off the bar then another one should fly on. This is my current script:
StarterGui -> ScreenGui -> Frame -> TextBox -> Script
while true do local GUI = script.Parent GUI.Text = "Welcome to my game!" wait(10) -- Does more of these then it restarts end
But how do you do it with UDim2? Can someone explain how to use it?
UDim2.new(scaleX, offsetX, scaleY, offsetY)
I think that the scale values from UDim2 are values that will resize the GUI according to your screen size.
The position, you can just make the scales 0, and increase the offset by 10 each time the script runs.
You might want to take a look at this Wiki Page on TweenPosition.
http://wiki.roblox.com/index.php?title=TweenPosition_(Method)
genarally though, this is how you use UDim2:
Gui.Position =UDim2.new(0,0,0,0)