(MakeWeld(car.Misc.Anims.R15.LeftLeg.Foot.Y,car.DriveSeat,"\077\111\116\111\114\054\068")).Name="\077";(MakeWeld(car.Misc.Anims.R15.LeftLeg.Foot.Z,car.Misc.Anims.R15.LeftLeg.Foot.Y,"\077\111\116\111\114\054\068")).Name="\077";(MakeWeld(car.Misc.Anims.R15.LeftLeg.Foot.X,car.Misc.Anims.R15.LeftLeg.Foot.Z,"\077\111\116\111\114\054\068")).Name="\077"ModelWeld(car.Misc.Anims.R15.LeftLeg.Foot.Parts,car.Misc.Anims.R15.LeftLeg.Foot.X);(MakeWeld(car.Misc.Anims.R15.LeftLeg.LowerLeg.X,car.Misc.Anims.R15.LeftLeg.Foot.X,"\077\111\116\111\114\054\068")).Name="\077"ModelWeld(car.Misc.Anims.R15.LeftLeg.LowerLeg.Parts,car.Misc.Anims.R15.LeftLeg.LowerLeg.X);(MakeWeld(car.Misc.Anims.R15.LeftLeg.UpperLeg.X,car.Misc.Anims.R15.LeftLeg.LowerLeg.X,"\077\111\116\111\114\054\068")).Name="\077"ModelWeld(car.Misc.Anims.R15.LeftLeg.UpperLeg.Parts,car.Misc.Anims.R15.LeftLeg.UpperLeg.X)function animPose(M,B)local A local d=M local Q={}local i={}local u=CFrame.new(0,0,0)d.ChildRemoved:connect(function(M)if M.Name=="\083\101\097\116\087\101\108\100"and M:IsA("\087\101\108\100")then for M,B in pairs(Q)do if B~=0 then if B[4]~=nil then B[4]:Destroy()B[1].Part1=B[5]else if B[2]~=nil then B[1].C0=B[2]B[1].C1=B[3]else B[1]:Destroy()end end end end for M,B in pairs(i)do B[1]:Destroy()B[2]:Destroy()B[3].Transparency=0 end A=nil Q={}i={}end end)d.ChildAdded:connect(function(M)if M.Name=="\083\101\097\116\087\101\108\100"and(M:IsA("\087\101\108\100")and game.Players:GetPlayerFromCharacter(M.Part1.Parent)~=nil)then A=M.Part1.Parent d.SeatWeld.C0=u d.SeatWeld.C1=CFrame.new()local L=false for M,B in pairs(A:GetChildren())do if B:IsA("\067\104\097\114\097\099\116\101\114\077\101\115\104")and B.BodyPart==Enum.BodyPart.Torso then L=true break end end local function P(M,B)local A=Instance.new("\087\101\108\100",M)A.Part0=M A.Part1=B return A end if A:FindFirstChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")~=nil and A:FindFirstChild("\084\111\114\115\111")~=nil then d.SeatWeld.C0=u d.SeatWeld.C1=CFrame.new()A.HumanoidRootPart.RootJoint.Part1=nil table.insert(Q,{A.HumanoidRootPart.RootJoint;A.HumanoidRootPart.RootJoint.C0;A.HumanoidRootPart.RootJoint.C1,P(A.HumanoidRootPart,A.Torso),A.Torso})if A.Torso:FindFirstChild("\078\101\099\107")~=nil then local M=A.Head:Clone()M.Name="\080\097\114\116"M.Parent=A local B=P(A.Torso,M)B.C0=A.Torso.Neck.C0 B.C1=A.Torso.Neck.C0 A.Head.Transparency=1 table.insert(i,{M;B;A.Head})table.insert(Q,{B;nil,nil,nil;nil})for B,d in pairs(A.Head:GetChildren())do if d:IsA("\087\101\108\100")then local B=d.Part1:Clone()B.Parent=A d.Part1.Transparency=1 local Q=P(M,B)Q.C0=d.C0 Q.C1=d.C1 table.insert(i,{B;Q;d.Part1})end end else table.insert(Q,0)end if A.Torso:FindFirstChild("\076\101\102\116 \083\104\111\117\108\100\101\114")~=nil then(A.Torso:FindFirstChild("\076\101\102\116 \083\104\111\117\108\100\101\114")).Part1=nil table.insert(Q,{A.Torso:FindFirstChild("\076\101\102\116 \083\104\111\117\108\100\101\114");(A.Torso:FindFirstChild("\076\101\102\116 \083\104\111\117\108\100\101\114")).C0,(A.Torso:FindFirstChild("\076\101\102\116 \083\104\111\117\108\100\101\114")).C1,P(A.Torso,A:FindFirstChild("\076\101\102\116 \065\114\109")),A:FindFirstChild("\076\101\102\116 \065\114\109")})else table.insert(Q,0)end if A.Torso:FindFirstChild("\082\105\103\104\116 \083\104\111\117\108\100\101\114")~=nil then(A.Torso:FindFirstChild("\082\105\103\104\116 \083\104\111\117\108\100\101\114")).Part1=nil table.insert(Q,{A.Torso:FindFirstChild("\082\105\103\104\116 \083\104\111\117\108\100\101\114"),(A.Torso:FindFirstChild("\082\105\103\104\116 \083\104\111\117\108\100\101\114")).C0,(A.Torso:FindFirstChild("\082\105\103\104\116 \083\104\111\117\108\100\101\114")).C1;P(A.Torso,A:FindFirstChild("\082\105\103\104\116 \065\114\109")),A:FindFirstChild("\082\105\103\104\116 \065\114\109")})else table.insert(Q,0)end if A.Torso:FindFirstChild("\076\101\102\116 \072\105\112")~=nil then(A.Torso:FindFirstChild("\076\101\102\116 \072\105\112")).Part1=nil table.insert(Q,{A.Torso:FindFirstChild("\076\101\102\116 \072\105\112"),(A.Torso:FindFirstChild("\076\101\102\116 \072\105\112")).C0,(A.Torso:FindFirstChild("\076\101\102\116 \072\105\112")).C1;P(A.Torso,A:FindFirstChild("\076\101\102\116 \076\101\103")),A:FindFirstChild("\076\101\102\116 \076\101\103")})else table.insert(Q,0)end if A.Torso:FindFirstChild("\082\105\103\104\116 \072\105\112")~=nil then(A.Torso:FindFirstChild("\082\105\103\104\116 \072\105\112")).Part1=nil table.insert(Q,{A.Torso:FindFirstChild("\082\105\103\104\116 \072\105\112"),(A.Torso:FindFirstChild("\082\105\103\104\116 \072\105\112")).C0;(A.Torso:FindFirstChild("\082\105\103\104\116 \072\105\112")).C1;P(A.Torso,A:FindFirstChild("\082\105\103\104\116 \076\101\103")),A:FindFirstChild("\082\105\103\104\116 \076\101\103")})else table.insert(Q,0)end end for M,d in pairs(Q)do local Q=B[M]if M==3 then for M,A in pairs(A:GetChildren())do if A:IsA("\067\104\097\114\097\099\116\101\114\077\101\115\104")and A.BodyPart==Enum.BodyPart.LeftArm then Q=B[7]break end end elseif M==4 then for M,A in pairs(A:GetChildren())do if A:IsA("\067\104\097\114\097\099\116\101\114\077\101\115\104")and A.BodyPart==Enum.BodyPart.RightArm then Q=B[8]break end end end if d[4]~=nil then d[4].C0=Q d[4].C1=CFrame.new()else d[1].C0=Q d[1].C1=CFrame.new()end end end end)end local M={CFrame.new(.00701141357,1.09911013,.0404243469,1,3.80970855e-09,-4.35450502e-08,0,.996194661,.087155968,4.37113883e-08,-0.087155968,.996194661),CFrame.new(0,1.50000381,0,1,0,0,0,.996194661,-0.087155968,0,.087155968,.996194661),CFrame.new(-0.876424789,-0.214377403,-0.478406906,.819151819,-0.573576868,7.37368282e-07,.519837081,.742402971,-0.422619611,.242404267,.346189946,.906307161),CFrame.new(.876424789,-0.214377403,-0.478406906,.819151819,.573576868,-7.37368282e-07,-0.519837081,.742402971,-0.422619611,-0.242404267,.346189946,.906307161),CFrame.new(-1.27365112,-1.25288582,-1.13527107,.98480773,-0.173648179,0,.171010077,.969846308,.173647881,-0.0301536396,-0.171009779,.984807789),CFrame.new(1.27365112,-1.25288582,-1.13527298,.98480773,.173648179,0,-0.171010077,.969846308,.173647881,.0301536396,-0.171009779,.984807789)}
--Left Leg
MakeWeld(car.Misc.Anims.R15.LeftLeg.Foot.Y, car.DriveSeat, "Motor6D").Name = "M"
MakeWeld(car.Misc.Anims.R15.LeftLeg.Foot.Z, car.Misc.Anims.R15.LeftLeg.Foot.Y, "Motor6D").Name = "M"
MakeWeld(car.Misc.Anims.R15.LeftLeg.Foot.X, car.Misc.Anims.R15.LeftLeg.Foot.Z, "Motor6D").Name = "M"
ModelWeld(car.Misc.Anims.R15.LeftLeg.Foot.Parts, car.Misc.Anims.R15.LeftLeg.Foot.X)

MakeWeld(car.Misc.Anims.R15.LeftLeg.LowerLeg.X, car.Misc.Anims.R15.LeftLeg.Foot.X, "Motor6D").Name = "M"
ModelWeld(car.Misc.Anims.R15.LeftLeg.LowerLeg.Parts, car.Misc.Anims.R15.LeftLeg.LowerLeg.X)

MakeWeld(car.Misc.Anims.R15.LeftLeg.UpperLeg.X, car.Misc.Anims.R15.LeftLeg.LowerLeg.X, "Motor6D").Name = "M"
ModelWeld(car.Misc.Anims.R15.LeftLeg.UpperLeg.Parts, car.Misc.Anims.R15.LeftLeg.UpperLeg.X)

function animPose(seat, pose)
	local C
	local S = seat
	local WS = {}
	local HW = {}

	local seatOffset = CFrame.new(0, 0, 0)

	S.ChildRemoved:connect(function(child)
		if child.Name == "SeatWeld" and child:IsA("Weld") then
			for i, v in pairs(WS) do
				if v ~= 0 then
					if v[4] ~= nil then
						v[4]:Destroy()
						v[1].Part1 = v[5]
					else
						if v[2] ~= nil then
							v[1].C0 = v[2]
							v[1].C1 = v[3]
						else
							v[1]:Destroy()
						end
					end
				end
			end
			for i, v in pairs(HW) do
				v[1]:Destroy()
				v[2]:Destroy()
				v[3].Transparency = 0
			end
			C = nil
			WS = {}
			HW = {}
		end
	end)

	S.ChildAdded:connect(function(child)
		if
			child.Name == "SeatWeld"
			and child:IsA("Weld")
			and game.Players:GetPlayerFromCharacter(child.Part1.Parent) ~= nil
		then
			C = child.Part1.Parent
			S.SeatWeld.C0 = seatOffset
			S.SeatWeld.C1 = CFrame.new()

			local pkTor = false
			for i, v in pairs(C:GetChildren()) do
				if v:IsA("CharacterMesh") and v.BodyPart == Enum.BodyPart.Torso then
					pkTor = true
					break
				end
			end

			local function MW(x, y)
				local WW = Instance.new("Weld", x)
				WW.Part0 = x
				WW.Part1 = y
				return WW
			end

			if C:FindFirstChild("HumanoidRootPart") ~= nil and C:FindFirstChild("Torso") ~= nil then
				S.SeatWeld.C0 = seatOffset
				S.SeatWeld.C1 = CFrame.new()
				C.HumanoidRootPart.RootJoint.Part1 = nil
				table.insert(
					WS,
					{
						C.HumanoidRootPart.RootJoint,
						C.HumanoidRootPart.RootJoint.C0,
						C.HumanoidRootPart.RootJoint.C1,
						MW(C.HumanoidRootPart, C.Torso),
						C.Torso,
					}
				)
				if C.Torso:FindFirstChild("Neck") ~= nil then
					local H = C.Head:Clone()
					H.Name = "Part"
					H.Parent = C
					local WH = MW(C.Torso, H)
					WH.C0 = C.Torso.Neck.C0
					WH.C1 = C.Torso.Neck.C0
					C.Head.Transparency = 1

					table.insert(HW, { H, WH, C.Head })
					table.insert(WS, { WH, nil, nil, nil, nil })
					for i, v in pairs(C.Head:GetChildren()) do
						if v:IsA("Weld") then
							local pp = v.Part1:Clone()
							pp.Parent = C
							v.Part1.Transparency = 1

							local ww = MW(H, pp)
							ww.C0 = v.C0
							ww.C1 = v.C1
							table.insert(HW, { pp, ww, v.Part1 })
						end
					end
				else
					table.insert(WS, 0)
				end
				if C.Torso:FindFirstChild("Left Shoulder") ~= nil then
					C.Torso:FindFirstChild("Left Shoulder").Part1 = nil
					table.insert(
						WS,
						{
							C.Torso:FindFirstChild("Left Shoulder"),
							C.Torso:FindFirstChild("Left Shoulder").C0,
							C.Torso:FindFirstChild("Left Shoulder").C1,
							MW(C.Torso, C:FindFirstChild("Left Arm")),
							C:FindFirstChild("Left Arm"),
						}
					)
				else
					table.insert(WS, 0)
				end
				if C.Torso:FindFirstChild("Right Shoulder") ~= nil then
					C.Torso:FindFirstChild("Right Shoulder").Part1 = nil
					table.insert(
						WS,
						{
							C.Torso:FindFirstChild("Right Shoulder"),
							C.Torso:FindFirstChild("Right Shoulder").C0,
							C.Torso:FindFirstChild("Right Shoulder").C1,
							MW(C.Torso, C:FindFirstChild("Right Arm")),
							C:FindFirstChild("Right Arm"),
						}
					)
				else
					table.insert(WS, 0)
				end
				if C.Torso:FindFirstChild("Left Hip") ~= nil then
					C.Torso:FindFirstChild("Left Hip").Part1 = nil
					table.insert(
						WS,
						{
							C.Torso:FindFirstChild("Left Hip"),
							C.Torso:FindFirstChild("Left Hip").C0,
							C.Torso:FindFirstChild("Left Hip").C1,
							MW(C.Torso, C:FindFirstChild("Left Leg")),
							C:FindFirstChild("Left Leg"),
						}
					)
				else
					table.insert(WS, 0)
				end
				if C.Torso:FindFirstChild("Right Hip") ~= nil then
					C.Torso:FindFirstChild("Right Hip").Part1 = nil
					table.insert(
						WS,
						{
							C.Torso:FindFirstChild("Right Hip"),
							C.Torso:FindFirstChild("Right Hip").C0,
							C.Torso:FindFirstChild("Right Hip").C1,
							MW(C.Torso, C:FindFirstChild("Right Leg")),
							C:FindFirstChild("Right Leg"),
						}
					)
				else
					table.insert(WS, 0)
				end
			end

			for i, v in pairs(WS) do
				local cfp = pose[i]
				if i == 3 then
					for i, v in pairs(C:GetChildren()) do
						if v:IsA("CharacterMesh") and v.BodyPart == Enum.BodyPart.LeftArm then
							cfp = pose[7]
							break
						end
					end
				elseif i == 4 then
					for i, v in pairs(C:GetChildren()) do
						if v:IsA("CharacterMesh") and v.BodyPart == Enum.BodyPart.RightArm then
							cfp = pose[8]
							break
						end
					end
				end
				if v[4] ~= nil then
					v[4].C0 = cfp
					v[4].C1 = CFrame.new()
				else
					v[1].C0 = cfp
					v[1].C1 = CFrame.new()
				end
			end
		end
	end)
end

local Passenger = {
	CFrame.new(
		0.00701141357,
		1.09911013,
		0.0404243469,
		1,
		3.80970855e-09,
		-4.35450502e-08,
		0,
		0.996194661,
		0.087155968,
		4.37113883e-08,
		-0.087155968,
		0.996194661
	), --Torso
	CFrame.new(0, 1.50000381, 0, 1, 0, 0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661), --Head
	CFrame.new(
		-0.876424789,
		-0.214377403,
		-0.478406906,
		0.819151819,
		-0.573576868,
		7.37368282e-07,
		0.519837081,
		0.742402971,
		-0.422619611,
		0.242404267,
		0.346189946,
		0.906307161
	), --Larm
	CFrame.new(
		0.876424789,
		-0.214377403,
		-0.478406906,
		0.819151819,
		0.573576868,
		-7.37368282e-07,
		-0.519837081,
		0.742402971,
		-0.422619611,
		-0.242404267,
		0.346189946,
		0.906307161
	), --Rarm
	CFrame.new(
		-1.27365112,
		-1.25288582,
		-1.13527107,
		0.98480773,
		-0.173648179,
		0,
		0.171010077,
		0.969846308,
		0.173647881,
		-0.0301536396,
		-0.171009779,
		0.984807789
	), --Lleg
	CFrame.new(
		1.27365112,
		-1.25288582,
		-1.13527298,
		0.98480773,
		0.173648179,
		0,
		-0.171010077,
		0.969846308,
		0.173647881,
		0.0301536396,
		-0.171009779,
		0.984807789
	), --Rleg
}
