Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

GUI's and Parts

Asked by 10 years ago

With GUI's you can use TweenSize and TweenPosition to move or change a gui smoothly. I wanted to find out if there is such a way to do the same smoooth transition on a part like the gui. Can you use the TweenSize on a part too??

2 answers

Log in to vote
3
Answered by 10 years ago

You can, actually. Check out this model I made forever ago:

http://www.roblox.com/Part-Tweening-Function-item?id=78813197

You just get some GUI elements, tween those, and then map the position of the gui element to a part every time it moves.

Ad
Log in to vote
-1
Answered by 10 years ago

No. TweenSize uses UDim2 for its measurements, where as Parts use Vector3's.

The closest way to "replicate" this kind of action would be a for statement. Such as;

for i=1,5 do
 -- Change position +1 script
end

Answer this question