I am trying to animate my 737 landing which the plane itself consists of a few meshes made in blender with 2 hinge constraints for the engines to spin, it is all a single model and welded correctly etc. However my script is only moving the primary part of the model (Aka the fuselage). Help will be appreciated, Here’s the script:
local tweenservice = game:GetService("TweenService")
local Fuselage = script.Parent.PrimaryPart
local WPT1Goals = {
Position = Vector3.new(-816.563, 194.746, -1677.747),
Orientation = Vector3.new(0, -90, 2.5)
}
local WPT2Goals = {
Position = Vector3.new(-816.563, 102.746, -61.747),
Orientation = Vector3.new(0, -90, 4)
}
local WPT3Goals = {
Position = Vector3.new(-816.563, 40.746, 142.253),
Orientation = Vector3.new(0, -90, 5)
}
local WPT4Goals = {
Position = Vector3.new(-816.563, 40.746, 492.253),
Orientation = Vector3.new(0, -90, -0.75)
}
local WPT5Goals = {
Position = Vector3.new(-816.563, 40.746, 2062.252),
Orientation = Vector3.new(0, -90, -0.75)
}
local WPT1Info = TweenInfo.new(
10,
Enum.EasingStyle.Linear,
Enum.EasingDirection.InOut,
0,
false,
0
)
local WPT2Info = TweenInfo.new(
5,
Enum.EasingStyle.Linear,
Enum.EasingDirection.InOut,
0,
false,
0
)
local WPT3Info = TweenInfo.new(
4,
Enum.EasingStyle.Linear,
Enum.EasingDirection.InOut,
0,
false,
0
)
local WPT4Info = TweenInfo.new(
2,
Enum.EasingStyle.Linear,
Enum.EasingDirection.InOut,
0,
false,
0
)
local WPT5Info = TweenInfo.new(
5,
Enum.EasingStyle.Linear,
Enum.EasingDirection.InOut,
0,
false,
0
)
local WPT1 = tweenservice:Create(Fuselage, WPT1Info, WPT1Goals)
local WPT2 = tweenservice:Create(Fuselage, WPT2Info, WPT2Goals)
local WPT3 = tweenservice:Create(Fuselage, WPT3Info, WPT3Goals)
local WPT4 = tweenservice:Create(Fuselage, WPT4Info, WPT4Goals)
local WPT5 = tweenservice:Create(Fuselage, WPT5Info, WPT5Goals)
while true do
wait(10)
WPT1:Play()
wait(10)
WPT2:Play()
wait(5)
WPT3:Play()
wait(4)
WPT4:Play()
wait(2)
WPT5:Play()
end
Kind regards, Ducks.
FnunyGuy#5742 On Discord