"Attempt to call a table value" with TweenService

This line of code is erroring, I can’t find out why

TS:Create(humanoid,TweenInfo(0.4),{CameraOffset = Vector3.new(0,-3.8,0)}):Play()

You need to do TweenInfo.new(0.4) not TweenInfo(0.4) otherwise you’re calling the table itself.

1 Like

TweenInfo isn’t a table value (it’s a class/value type) but yes, this is correct.

TS:Create(humanoid, TweenInfo.new(0.4), {CameraOffset = Vector3.new(0,-3.8,0)}):Play()
1 Like