if script.Parent:IsA("\086\101\104\105\099\108\101\083\101\097\116")then script.Parent.ChildAdded:connect(function(n)if n:IsA("\087\101\108\100")and game.Players:GetPlayerFromCharacter(n.Part1.Parent)~=nil then local P=game.Players:GetPlayerFromCharacter(n.Part1.Parent)local x=script.SendBass:Clone()x.Parent=P.PlayerGui x.src.Value=script.BassEvent x.Disabled=false end end)script.Parent.ChildRemoved:Connect(function(n)if n:IsA("\087\101\108\100")and game.Players:GetPlayerFromCharacter(n.Part1.Parent)~=nil then end end)end script.BassEvent.OnServerEvent:Connect(function(n,P)local x=script.Parent.Parent local r=x.Body.BassParts for n,x in pairs(r:GetChildren())do if x:IsA("\077\101\115\104\080\097\114\116")then local n=x:FindFirstChild("\086\101\099\116\111\114\083\105\122\101")if P<=x.MaxBassSize.Value then x.Size=Vector3.new(n.Value.X,P/x.BassSize.Value,n.Value.Z)else x.Size=Vector3.new(n.Value.X,x.MaxBassSize.Value/x.BassSize.Value,n.Value.Z)end end end end)


if script.Parent:IsA("VehicleSeat") then
	script.Parent.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)
			local g= script.SendBass:Clone()
			g.Parent=p.PlayerGui
			g.src.Value = script.BassEvent
			g.Disabled = false	
		end
	end)
	script.Parent.ChildRemoved:Connect(function(child)
		if child:IsA("Weld") and game.Players:GetPlayerFromCharacter(child.Part1.Parent)~=nil then
		end
	end)
end

script.BassEvent.OnServerEvent:Connect(function(plr, bass)
	local car = script.Parent.Parent
	local bassParts = car.Body.BassParts
	for i,v in pairs(bassParts:GetChildren()) do
		if v:IsA("MeshPart") then
			local vectorSize = v:FindFirstChild("VectorSize")
			if bass <= v.MaxBassSize.Value then
				v.Size = Vector3.new(vectorSize.Value.X,bass/v.BassSize.Value,vectorSize.Value.Z)
			else
				v.Size = Vector3.new(vectorSize.Value.X,v.MaxBassSize.Value/v.BassSize.Value,vectorSize.Value.Z)
			end
		end
	end
end)
