Having Problems with Module Scripts

Hi Developers!
Today i started working with module scripts(My first day) and got problem

This is my module script

local Animate = {}

Animate.Butfun = function(par1,par2,par3)

par1:par2(UDim2.new(par3),“Out”,“Linear”,0.3)

end

return Animate

and my local script in my text button

local a = require(game.ReplicatedStorage.ModuleScript)

local b = UDim2.new(0,0,0,0)

script.Parent.MouseButton1Down:Connect(a.Butfun(script.Parent,TweenSize,b))

Please can anyone help me i dont know what to do

Thanks!

Hey just wondering.
Many people uses modules for stuff like this
This is not needed, you can just do a function on your LocalScript!
Why using modules if you’re not “used” to work with them?
Just do a function!
It’ll be easier.
But, answering to the question, I can barely understand.

local a = require(game.ReplicatedStorage.ModuleScript)

local b = UDim2.new(0,0,0,0)

script.Parent.MouseButton1Down:Connect(a.Butfun(script.Parent,TweenSize,b))

Please can anyone help me i dont know what to do

‘B’ is a Udim2 value, and when tweening it, you do Udim2.new() on a Udim2.

par1:par2

As far as i know there are no datatypes that have par2 as a function.

@varjoy i want to be better at module scrips
in local script i only need to do
script.parent:TweenSize(Udim2.new(position),“Out”,"Linear"0.3)
thats all
but i dont know i just wanna be better at coding already trying to learn for 2 years but dont know how to use modules and datastores