-
What do you want to achieve? I want to make a Model move using tween
-
What is the issue? After I followed this video step by step only the root part moved.
Here is the video: https://youtu.be/pTxXvQM61mE -
What solutions have you tried so far? Youtube
local model = script.Parent
local root = model:WaitForChild("Root")
local tweenService = game:GetService("TweenService")
local tweenInfo = TweenInfo.new(
1, --Time it takes to complete
Enum.EasingStyle.Sine, -- Style to tween
Enum.EasingDirection.In, --In is default, out is reverse, inOut is in first then out
-1, -- Times to repeat (-1 is infinite)
true, --Does it repeat?
1 --Time between tweens (if it repeats)
)
local properties = { --Put as many properties as you want
Position = Vector3.new(0, 10, 0)
--(only properties that should be used are Position, Orientation, and CFrame, since we are tweening the Root)
}
local tween = tweenService:Create(root, tweenInfo, properties)
tween:Play()