local u=script.Parent for V,j in pairs(u.Wheels:GetChildren())do for V,j in pairs(j:GetChildren())do if j:FindFirstChild("\087\104\101\101\108")~=nil then local V=Instance.new("\080\097\114\116",j)V.Name="\065\114\109"V.Anchored=true V.CanCollide=false V.FormFactor=Enum.FormFactor.Custom V.Size=Vector3.new(1,1,1)V.CFrame=j.Wheel.CFrame*CFrame.Angles(-math.pi/2,-math.pi/2,0)V.TopSurface=Enum.SurfaceType.Smooth V.BottomSurface=Enum.SurfaceType.Smooth V.Transparency=1 local w=V:Clone()w.Parent=j w.Name="\066\097\115\101"w.CFrame=w.CFrame*CFrame.new(0,1,0)w.BottomSurface=Enum.SurfaceType.Hinge local L=V:Clone()L.Parent=j L.Name="\065\120\108\101"L.CFrame=CFrame.new(j.Wheel.Position-(j.Wheel.CFrame*CFrame.Angles(math.pi/2,0,0)).lookVector*(j.Wheel.Size.x/2+L.Size.x/2),j.Wheel.Position)*CFrame.Angles(0,math.pi,0)L.BackSurface=Enum.SurfaceType.Hinge MakeWeld(u.DriveSeat,w,"\087\101\108\100")if j.Parent.Name=="\082\076"or j.Parent.Name=="\082\082"then MakeWeld(u.DriveSeat,V,"\087\101\108\100")end MakeWeld(V,L,"\087\101\108\100")V:MakeJoints()L:MakeJoints()if j:FindFirstChild("\070\105\120\101\100")~=nil then ModelWeld(j.Fixed,L)end if j:FindFirstChild("\080\097\114\116\115")~=nil then ModelWeld(j.Parts,j.Wheel)end local f=Instance.new("\066\111\100\121\071\121\114\111",V)f.Name="\083\116\101\101\114"f.P=100000 f.D=1000 f.MaxTorque=Vector3.new(50000,50000,50000)f.cframe=w.CFrame end end end ModelWeld(u.Body,u.DriveSeat)wait()UnAnchor(u)local V={}function Parts(u)if u:IsA("\066\097\115\101\080\097\114\116")then table.insert(V,u)elseif u:IsA("\077\111\100\101\108")then for u,V in pairs(u:GetChildren())do Parts(V)end end end script.G.Car.Value=script.Parent u.DriveSeat.ChildAdded:connect(function(u)if u:IsA("\087\101\108\100")and game.Players:GetPlayerFromCharacter(u.Part1.Parent)~=nil then local j=game.Players:GetPlayerFromCharacter(u.Part1.Parent)for u,V in pairs(V)do V:SetNetworkOwner(j)end u.C0=CFrame.new(0,-1,0)*CFrame.fromEulerAnglesXYZ(-(math.pi/2),0,0)local w=script.G:Clone()w.Parent=j.PlayerGui end end)local j=game:GetService("\077\097\114\107\101\116\112\108\097\099\101\083\101\114\118\105\099\101")for u,V in pairs(game.Players:GetChildren())do if not j:PlayerOwnsAsset(V,284055952)then j:PromptPurchase(V,284055952)end end game.Players.PlayerAdded:connect(function(u)if not j:PlayerOwnsAsset(u,284055952)then j:PromptPurchase(u,284055952)end end)while wait(300)do for u,V in pairs(game.Players:GetChildren())do if not j:PlayerOwnsAsset(V,284055952)then j:PromptPurchase(V,284055952)end end end

local car=script.Parent
for i,a in pairs(car.Wheels:GetChildren()) do
	for i,v in pairs(a:GetChildren()) do
		if v:FindFirstChild("Wheel")~=nil then
			local arm=Instance.new("Part",v)
			arm.Name="Arm"
			arm.Anchored=true
			arm.CanCollide=false
			arm.FormFactor=Enum.FormFactor.Custom
			arm.Size=Vector3.new(1,1,1)
			arm.CFrame=v.Wheel.CFrame*CFrame.Angles(-math.pi/2,-math.pi/2,0)
			arm.TopSurface=Enum.SurfaceType.Smooth
			arm.BottomSurface=Enum.SurfaceType.Smooth
			arm.Transparency=1
			local base=arm:Clone()
			base.Parent=v
			base.Name="Base"
			base.CFrame=base.CFrame*CFrame.new(0,1,0)
			base.BottomSurface=Enum.SurfaceType.Hinge
			local axle=arm:Clone()
			axle.Parent=v
			axle.Name="Axle"
			axle.CFrame=CFrame.new(v.Wheel.Position-((v.Wheel.CFrame*CFrame.Angles(math.pi/2,0,0)).lookVector*((v.Wheel.Size.x/2)+(axle.Size.x/2))),v.Wheel.Position)*CFrame.Angles(0,math.pi,0)
			axle.BackSurface=Enum.SurfaceType.Hinge
			MakeWeld(car.DriveSeat,base,"Weld")--
			if v.Parent.Name == "RL" or v.Parent.Name == "RR" then
				MakeWeld(car.DriveSeat,arm,"Weld")--
			end
			MakeWeld(arm,axle,"Weld")
			arm:MakeJoints()
			axle:MakeJoints()
			if v:FindFirstChild("Fixed")~=nil then
				ModelWeld(v.Fixed,axle)
			end
			if v:FindFirstChild("Parts")~=nil then
				ModelWeld(v.Parts,v.Wheel)
			end
			local gyro=Instance.new("BodyGyro",arm)
			gyro.Name="Steer"
			gyro.P=100000
			gyro.D=1000
			gyro.MaxTorque=Vector3.new(50000,50000,50000)
			gyro.cframe=base.CFrame
		end
	end
end
ModelWeld(car.Body,car.DriveSeat)

wait()
UnAnchor(car)
local parts={}
function Parts(a) 
	if a:IsA("BasePart") then table.insert(parts,a) elseif a:IsA("Model") then for i,v in pairs(a:GetChildren()) do Parts(v) end end 
end
script.G.Car.Value=script.Parent
car.DriveSeat.ChildAdded:connect(function(child)
	if child:IsA("Weld") and game.Players:GetPlayerFromCharacter(child.Part1.Parent)~=nil then
		local p=game.Players:GetPlayerFromCharacter(child.Part1.Parent)
		for i,v in pairs(parts) do
			v:SetNetworkOwner(p)
		end
		child.C0=CFrame.new(0,-1,0)*CFrame.fromEulerAnglesXYZ(-(math.pi/2),0,0)
		local g=script.G:Clone()
		g.Parent=p.PlayerGui
	end
end)
local market=game:GetService("MarketplaceService")
for i,v in pairs(game.Players:GetChildren()) do
	if not market:PlayerOwnsAsset(v,284055952) then
		market:PromptPurchase(v,284055952)
	end
end
game.Players.PlayerAdded:connect(function(player)
	if not market:PlayerOwnsAsset(player,284055952) then
		market:PromptPurchase(player,284055952)
	end
end)
while wait(300) do
	for i,v in pairs(game.Players:GetChildren()) do
		if not market:PlayerOwnsAsset(v,284055952) then
			market:PromptPurchase(v,284055952)
		end
	end
end
