car.DriveSeat.ChildAdded:connect(function(k)if k.Name=="\083\101\097\116\087\101\108\100"and(k:IsA("\087\101\108\100")and game.Players:GetPlayerFromCharacter(k.Part1.Parent)~=nil)then local K=game.Players:GetPlayerFromCharacter(k.Part1.Parent)car.Body.MainPart.Anchored=false car.DriveSeat:SetNetworkOwner(K)local V=script.Parent["\065-\067\104\097\115\115\105\115 \073\110\116\101\114\102\097\099\101"]:Clone()V.Parent=K.PlayerGui end end)car.DriveSeat.ChildRemoved:connect(function(k)if k.Name=="\083\101\097\116\087\101\108\100"and k:IsA("\087\101\108\100")then if car.DriveSeat:FindFirstChild("\070\108\105\112")~=nil then car.DriveSeat.Flip.MaxTorque=Vector3.new()end for k,K in pairs(car.Wheels:GetChildren())do if K:FindFirstChild("\035\065\086")~=nil then if K["\035\065\086"]:IsA("\066\111\100\121\065\110\103\117\108\097\114\086\101\108\111\099\105\116\121")then if K["\035\065\086"].AngularVelocity.Magnitude>0 then K["\035\065\086"].AngularVelocity=Vector3.new()K["\035\065\086"].MaxTorque=Vector3.new()end else if K["\035\065\086"].AngularVelocity>0 then K["\035\065\086"].AngularVelocity=0 K["\035\065\086"].MotorMaxTorque=0 end end end end end wait(.2)car.Body.MainPart.Anchored=true end)
--[[Driver Handling]]

--Driver Sit
car.DriveSeat.ChildAdded:connect(function(child)
	if
		child.Name == "SeatWeld"
		and child:IsA("Weld")
		and game.Players:GetPlayerFromCharacter(child.Part1.Parent) ~= nil
	then
		--Distribute Client Interface
		local p = game.Players:GetPlayerFromCharacter(child.Part1.Parent)
		car.Body.MainPart.Anchored = false
		car.DriveSeat:SetNetworkOwner(p)
		local g = script.Parent["A-Chassis Interface"]:Clone()
		g.Parent = p.PlayerGui
	end
end)

--Driver Leave
car.DriveSeat.ChildRemoved:connect(function(child)
	if child.Name == "SeatWeld" and child:IsA("Weld") then
		--Remove Flip Force
		if car.DriveSeat:FindFirstChild("Flip") ~= nil then
			car.DriveSeat.Flip.MaxTorque = Vector3.new()
		end

		--Remove Wheel Force
		for i, v in pairs(car.Wheels:GetChildren()) do
			if v:FindFirstChild("#AV") ~= nil then
				if v["#AV"]:IsA("BodyAngularVelocity") then
					if v["#AV"].AngularVelocity.Magnitude > 0 then
						v["#AV"].AngularVelocity = Vector3.new()
						v["#AV"].MaxTorque = Vector3.new()
					end
				else
					if v["#AV"].AngularVelocity > 0 then
						v["#AV"].AngularVelocity = 0
						v["#AV"].MotorMaxTorque = 0
					end
				end
			end
		end
	end
	wait(0.2)
	car.Body.MainPart.Anchored = true
end)
