How to fix this bug

ServerScriptService.TS Script.SP.TimeStop:13: Expected ‘)’ (to close ‘(’ at line 10), got ‘Enum’

local tweeninfo = TweenInfo.New(

TweenTime,

Enum.EasingStyle.Linear

Enum.EasingDirection.Out

)

local tweeninfo = TweenInfo.New(

TweenTime,

Enum.EasingStyle.Linear,

Enum.EasingDirection.Out

)

You forgot a comma

ServerScriptService.TS Script.SP.TimeStop:10: attempt to call a nil value

local tweeninfo = TweenInfo.New(
TweenTime,

Enum.EasingStyle.Linear,

Enum.EasingDirection.Out

)

Shouldn’t it be TweenInfo.new with a lowercase n? What the error “attempt to call nil value” means is you are indexing something that is non existent and then calling said non existent thing as if it’s a function. In your case it’s the .New index which is not a function of TweenInfo.