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

How would I improve this script for making my text change position?

Here is my script

script.Parent:TweenPosition(UDim2.new(0, 0, 0, 0), "In", "Back", 1)

How would I make tween position with a loop make a textlabel move from the center of the frame slide to the top left part of the frame

I’m trying to make it work yet it doesn’t how would I do this any ideas and thanks a lot for the help

4 comments

0

Asking for improvements and asking for a fix are 2 different things. Don't ask 2 different questions in 1.

0

Sorry sir

0

I’ll try my best next time

0

Could you also show the rest of your script?

1 answer

✓ Accepted answer

Hello there pal!

Assuming you want a TextLabel to constantly tween in and out, I'll teach you something.

while loops loop the entire code encased in it to repeat itself over and over again without a stop. So, for example, I would do;

while true do
	print("Hello world!")
	wait(1) --The '1' can be replaced to how much delay time there is.
end

But I have to warn you, don't forget to place a 'wait' cooldown. If you don't, studio will either crash or halt the script to prevent lag.

Armed with this new method, let's go to your problem.

while true do -- infinite loop
	script.Parent:TweenPosition(UDim2.new(0,0,0,0),'In','Back',1)
	wait(1)
end

Voila! Fixed! Hopefully.

From your friend, Sensei_Developer

P.S, when developing on ROBLOX studio, try to always open the Output tab. If you don't know where it is, then go to View > Output. Prints, warns and errors will be displayed on this tab. Adios!

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