Could someone show an example of using Tween in a modulescript?

Pretty much what the title says. I just want someone to show me how to apply a tween animation to a part that was copied from ServerStorage to Workspace whilst using a ModuleScript because I am some what struggling. Unless someone has any other method to use when I want to use the same Tween for all the same parts if I for example copy 50 parts to workspace with same tween.

1 Like

Like this?

local Module = {}
local TS = game:GetService("TweenService")
function Module:Tween(Object, Info, ...)
   TS:Create(Object, Info, ...):Play()
end
return Module
----
local TweenModule 
TweenModule:Tween(Part, TweenInfo.new(1), {Transparency = 1})

Don’t forget to require the module.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.