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
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!