I have a script currently that will generate a random size as well as place the intended rig. Now, based on the size i want to tween the rig to get bigger over time. Im not sure how to go about this as “size” isnt a valid memeber of a model. Im assuming i should use a for loop? But im still not sure where to start. Also, will tweening mess up the motor6ds and welds?
Thanks in advance for all replies and help
1 Like
My advice is that you insert a NumberValue into the rig and call it “Scale” and then create a script that detects changes to this NumberValue which alters the parts of the rig.
And then you can safely tween the number value to animate growth.
I believe this is the most viable way to do this.
1 Like
Okay thank you, currently ive been using a variable in the script to determine scale, is creating the value within the rig a better way?
Well you can actually use TweenService with a NumberValue and you cannot with a variable and I assume you would want that smoothness.
1 Like
Oh, i thought you could use a variable. Thank you for clarifying
Does anyone one know if the :ScaleTo function is useful in this scenario?
:ScaleTo changes the size instantly so if you want a smooth change of growth I’d advise using a tween, you can use scale to but you’ll have to do a loop and change it by 0.1 it like 10th of a second which won’t be good for the server.
1 Like
Ah, ok. Thank you, i had just heard that scale to was useful for models, so thanks for the clarification