Most of the parts work but when I added the part that would've changed
if Crashs == 1 then
local newCFrame = CFrame.Angles(math.rad(-10),0,0)
local TweenService = game:GetService("TweenService")
local Tweener1 = script.Parent
local Info = TweenInfo.new(2.2, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, false, 0)
local InfoAngle = TweenInfo.new(2,3, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, false, 0 )
local Goals = { Position = Vector3.new(-16.84, -81.92, -336.77);}
local PartPositionA = TweenService:Create(Tweener1, Info, Goals)
local SecondGoals = { Position = Vector3.new(-16.84, -19.06, -3.33);}
local PartPositionB = TweenService:Create(Tweener1, Info, SecondGoals)
local ThirdGoals = { Position = Vector3.new(-18.34, -99.19, 538.82);}
local PartPositionC = TweenService:Create(Tweener1, Info, ThirdGoals)
local PartAngleA = TweenService:Create(Tweener1,InfoAngle, ForthGoals )
local ForthGoals = { Tweener1.CFrame = Tweener1.CFrame * newCFrame }
wait(1.4)
PartPositionA:play()
wait(1.2)
PartPositionB:play()
wait(2.2)
PartPositionC:play()
wait(1)
PartAngleA:play()
script.Parent.CanCollide = false
end
if Crashs == 2 then
print ("it was 2!")
end
but the part you really want to look at (the part I really dont understand) is
local ForthGoals = { Tweener1.CFrame = Tweener1.CFrame * newCFrame
and also
local InfoAngle = TweenInfo.new(2,3, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, false, 0 )
I dont understand what the correct way to set it it, so this was my attempt
