Model Tween (Position,Orientation and Scale)

Oh yeah, thank you so much. I forgot it’s a module lmao

Nice resource - however, a few suggestions:

More functions would be great, such as :TweenTransparency, or :TweenColor. These are pretty easy to implement for advanced scripters, but would make the module that much more useful.

3 Likes

Thanks for the idea. I’ve implemented it

1 Like

How do I define module in module.TweenModuleScale(Model,Tweeninfo,Size)? Thank you.

1 Like

put the module in replicated storage and add this at the top of your code

local module = require(game:GetService("ReplicatedStorage"):WaitForChild("TMmoduleV2"))
1 Like

Thank you, the tween works now, but it keeps repeating on end…
My script is

local module = require(game:GetService("ReplicatedStorage"):WaitForChild("TMmoduleV2"))
local Tweeninfo = TweenInfo.new(5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 1, false, 3)
module.TweenModuleScale(script.Parent,Tweeninfo,5) 

2 Likes
local module = require(game:GetService("ReplicatedStorage"):WaitForChild("TMmoduleV2"))

local Tweeninfo = TweenInfo.new(5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, false, 3)

module.TweenModuleScale(script.Parent,Tweeninfo,5) 
task.wait(5)
script:Deestroy()
2 Likes

must me a bug, will check when iget back home

2 Likes

found what the issue is, its not a problem with the module, you made the tween info loop it :smile:

2 Likes

How would I tween a model to gradually move up, while keeping it’s X and Z coordinates fixed?

1 Like

by doing this

local MyModel = workspace.Model

local ModelTween = require(script.TW2module)
ModuleTween.TweenModulePosition(MyModel,Tweeninfo.new(10),ModelTween:GetPivot() + Vector3.new(0,20,0))

Something like this

2 Likes

Thanks for this addition! This seems very useful for any projects I’m making! :grinning:

1 Like

How would I make it tween the size of a whole model while excluding some parts, if their name is something? (ex: part.Name = hitbox)

1 Like

I just can’t explain how AMAZING this resource is! This really saved me so much time while making my project. Thank you so much!

1 Like

Excited to see what I can accomplish with this, thank you so much!

I absolutely love this module! This makes everything so much easier!

this saved me so much timee, thank you for making this!!!

This is a neat module! A few things that I would suggest implementing in it:

  • Add a new method TMmoduleV2:TweenModuleCFrame(Model, Tweeninfo, CFrame) which basically tweens the CFrame of the model.
  • Add type checking for each method’s parameter so scripters can know what arguments they have to put to use the methods correctly.

Overall, nice work.

2 Likes

Amazing library, thought it was over for me, then I found this

This is an excellent resource. Thank you so much for making it!