Tween attempt to index nil with Completed

I don’t understand what’s wrong with the script?? There’s just a dumb error.

local tweenpos = ts:Create(projectile,TweenInfo.new(0.6),{CFrame = CF}):Play()
tweenpos.Completed:Connect(function()
	explode()
end)

I can’t fix it because I don’t know what to fix

local tweenpos = ts:Create(projectile,TweenInfo.new(0.6),{CFrame = CF})

tweenpos:Play()

tweenpos.Completed:Connect(function()
	explode()
end)

Try this.

Dont use :Play in your Variable, Play does not have a Completed Event, Create has.

1 Like

Got it, thanks for the help, I appreciate it!

1 Like

No problem.


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