Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how to tween and animate at the same time without this happening?

Asked by 5 years ago
Edited 5 years ago

ok so i tried to tween and animate a rig in my game at the same time(its suppost to be a boss fight that opens up with them flying down onto the ground) and is wierd thing happens where when i tween the rootpart, the rest of the body just stays in place and spins,though it still animates, https://youtu.be/aOOeyrP12rs when i tween the torso along with the rootpart, this happens: https://youtu.be/Qw5_Jx5G_2w

Code: local tweenservice = game:GetService("TweenService")

local part = script.Parent.HumanoidRootPart

local part2 = script.Parent.Torso

local tweeinginfo = TweenInfo.new(

5,

Enum.EasingStyle.Linear,

Enum.EasingDirection.In

)

local properties = {

Position = Vector3.new(-238.871, 35.212, 40.047);

}

local tween = tweenservice:Create(part,tweeinginfo,properties)

local tween2 = tweenservice:Create(part2,tweeinginfo,properties)

local animController = script.Parent.Humanoid

local animTrack = animController:LoadAnimation(game.ReplicatedStorage.boss1)

wait(5)

tween:Play()

animTrack:Play()

how to i do this without these wierd things happing

Answer this question