-
What do you want to achieve? For the “enemy1” part to move as the Vector3 dictates in the tween.
-
What is the issue? Nothing happens.
-
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()