Tween not working - failing to move

  1. What do you want to achieve?
    I want to achieve a moving tween system, and where it loops.

  2. What is the issue?
    An error message comes up, and I cannot make my tween move, and loop.

  3. What solutions have you tried so far?
    I’ve asked my friends, and they do not know.


remove one of the equal signs.

local tween = TweenService:Create(camera, tweenInfo, {CFrame = Part2.CFrame})

You had two equal signs, which would create a boolean.

Adding onto @Kaid3n22 you need to give the function a table as the goal of the tween, you can’t encapsulate your values in parenthesis.

DO: { CFrame = Part2.CFrame }

DON’T: ( CFrame = Part2.CFrame )

To be honest, I didn’t even realize they didn’t put it into a table

1 Like

This is great, do you know how I can make this tween loop?

To make it loop, just change the repeat proprety of tween.info to -1!

Can you explain this a bit more?

local tweenInfo = TweenInfo.new(
	cutsceneTime, -- Time
	Enum.EasingStyle.Sine, -- EasingStyle
	Enum.EasingDirection.Out, -- EasingDirection
	-1, -- RepeatCount (when less than zero the tween will loop indefinitely)
	false, -- Reverses (tween will reverse once reaching it's goal)
	0 -- DelayTime
)