Part Tweening Not Working

Hello.

I am trying to tween a part to tween to one position, then tween to the next position.

The issue with this is that the part is not tweening, which I can tell since I can not see the part moving.

There are no errors in the console.

Script:

local TweenService = game:GetService("TweenService")
	local Blade = game.Workspace.Folder.Folder4.Part
	local target1 = Vector3.new(-570.673, -42.524, 382.237)
	local tweenInfo = TweenInfo.new(2)
	local tween = TweenService:Create(Blade, tweenInfo, {Position = target1})
	task.wait(3)
	local target2 = Vector3.new(-921.672, -42.519, 382.233)
	local tweenInfo2 = TweenInfo.new(2)
	local tween = TweenService:Create(Blade, tweenInfo2, {Position = target2})
	task.wait(3)
	game.Workspace.Groups.Group4.BoomerangHandle.Transparency = 1
	game.Workspace.Groups.Group4.Handle.Transparency = 0
	Blade.Position = Vector3.new(-686.673, -42.522, 382.236)

How do I fix this?

You are never calling :Play()

Make sure to add tween:Play() to your code, tells the tween to start.

Source

1 Like

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