Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to improve this UDim2.new?

Is there a way I could improve this script, well firstly it doesn't seem to work also, I am planing to add a:

while TextButtonCanMove == true do

then allow it to + 0.05 to the UDim2.new() but I am not sure how to, any help would be good.

TextButton.Position = UDim2.new({0.45, 0},{0, 0})
wait(0.2)
TextButton.Position = UDim2.new({0.5, 0},{0, 0})
wait(0.2)
TextButton.Position = UDim2.new({0.55, 0},{0, 0})
wait(0.2)
TextButton.Position = UDim2.new({0.6, 0},{0, 0})
wait(0.2)
TextButton.Position = UDim2.new({0.65, 0},{0, 0})
wait(0.2)
TextButton.Position = UDim2.new({0.7, 0},{0, 0})

1 comment

0

Remove all curly braces from the inside of UDim2.new(.7, 0, 0 ,0)

1 answer

for i=1, 10 do   	
  TextButton.Position = UDim2.new(game.StarterGui.TextButton.Position.X.Scale +0.05,0 ,0,0)
end

Try this out! I havent tested it, but its a new method for you to try. If this helped, rep me up! ^

This discussion is preserved as it was. New answers, comments, and votes are closed.