How do i use task.spawn when one of the passed values is a function?

i have a function that i need to task.spawn, but for the function to work it needs anotehr function. Basically:

one of the paremters for the function i want to task.spawn is aanother fucntion, similar to how tweens need TweenInfo, but i can find out how to pass this.

task.spawn(Enerm.Jumpare(), Enerm.JumpareInfo(5, 0.5, 0, 50, true), 17473317303, 6308606116, Enerm.JumpareInfo2(Enum.EasingStyle.Bounce))

*Cant find out how to pass this
(It wont let me edit the post)

To task.spawn a function w/arguments you can do:

task.spawn(some.function,1,2,3)

Is this what you are referring to?

task.spawn(Enerm.Jumpare, Enerm.JumpareInfo(5, 0.5, 0, 50, true), 17473317303, 6308606116, Enerm.JumpareInfo2(Enum.EasingStyle.Bounce))

yeah the second thing worked, i forgot to remove the bracket things.

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