Tween returning "Unable to cast to Dictionary"

I’m currently trying to make a gun tracer but it has an error creating the tween. This is probably an easy fix but I have no clue after jumping from Topic to Topic on this stuff

I believe that this is the only this that is causing it but please let me know if you need more

local info = TweenInfo.new((mousePos - script.Parent.Tip.Position).Magnitude/100,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut)
local tween = TS:Create(tracer,info,{CFrame.new(mousePos)})

It’s not a dictionary. It should be:
{CFrame = CFrame.new(mousePos)}

1 Like

Man, do I feel dumb.

Thank you!

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