Model Tween (Position,Orientation and Scale)

Consider changing TweenModuleSize to TweenModuleScale

3 Likes

oof yea i will change that real quick (d0ne)

2 Likes

image

TweenModule:TweenModulePosition(PickedMap,TweenInfo.new(5,Enum.EasingStyle.Linear),Vector3.new(0, -8, 0))

can you help?

1 Like

its

TweenModule.TweenModulePosition(PickedMap,TweenInfo.new(5,Enum.EasingStyle.Linear),Vector3.new(0, -8, 0))

The functions is not a method so u need to use .

1 Like

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!