Trouble with TweenService

  1. What do you want to achieve? For the “enemy1” part to move as the Vector3 dictates in the tween.

  2. What is the issue? Nothing happens.

  3. What solutions have you tried so far? Tried troubleshooting the code and finding issues in it but wasn’t able to get it working.

Full code:

local TweenService = game:GetService("TweenService")
local part = game.Workspace.enemy1
local tween1info = TweenInfo.new(
	5,
	Enum.EasingStyle.Linear,
	Enum.EasingDirection.Out,
	0,
	false,
	0
)
local move1 = {
	part.Position + Vector3.new(-30,0,0)
}

local enemytween1 = TweenService:Create(part,tween1info,move1)

enemytween1:Play()

TweenService:Create expect it to be a dictionary, not a table, do it like this

local move1 = {
	Position = part.Position + Vector3.new(-30,0,0)
}
2 Likes