I want my menu to slide from off the screen to centered on the screen after my intro is done.
I learned from a friend to use something like this:
for i = 1 do
The thing is, I'm new to scripting, and I want a script to move this frame simply without requiring me to manually put in:
wait(0.01) script.Parent.blablabla.blablabla.blablabla.Position = {0,0.01},{0,0}
Can someone help me out with this?
You could also use :TweenPosition
ThingYouWantMoving:TweenPosition(UDim2.new(new position )
You're problem is rather simple. You need to use UDim2.new when positioning. You were in the right direction, but you only need to fix that. Just remember, UDim2.new is for gui's. Not parts.
while wait(0.01) do script.Parent.blablabla.blablabla.blablabla.Position = script.Parent.blablabla.blablabla.blablabla.Position + UDim2.new(0, 0.01, 0, 0) if script.Parent.blablabla.blablabla.blablabla.Position == UDim2.new(0, 0, 0, 0) then --change this to the position you want it to stop at break --breaks the loop, basically making it quit end end
Link to the UDim2.new wiki page