function onChildAdded(B)if B.Name=="\083\101\097\116\087\101\108\100"then local T=B.part1.Parent:findFirstChild("\072\117\109\097\110\111\105\100")if T~=nil then print("\072\117\109\097\110 \073\078")seat.SirenControl.CarName.Value=T.Parent.Name.."\'\115 \067\097\114"seat.Parent.Name=T.Parent.Name.."\'\115 \067\097\114";(s.Parent.SirenControl:clone()).Parent=(game.Players:findFirstChild(T.Parent.Name)).PlayerGui seat.Start:Play()seat.Engine:Play()wait(3.07)seat.Start:Stop()end end end function onChildRemoved(B)if B.Name=="\083\101\097\116\087\101\108\100"then local T=B.part1.Parent:findFirstChild("\072\117\109\097\110\111\105\100")if T~=nil then print("\072\117\109\097\110 \079\085\084")seat.Parent.Name="\080\111\108\105\099\101\067\104\097\114\103\101\114"seat.SirenControl.CarName.Value="\080\111\108\105\099\101\067\104\097\114\103\101\114";(game.Players:findFirstChild(T.Parent.Name)).PlayerGui.SirenControl:remove()seat.Engine:Stop()end end end script.Parent.ChildAdded:connect(onChildAdded)script.Parent.ChildRemoved:connect(onChildRemoved)

function onChildAdded(child)
	if child.Name == "SeatWeld" then
		local human = child.part1.Parent:findFirstChild("Humanoid") 
		if (human ~= nil) then
			print("Human IN")
			seat.SirenControl.CarName.Value = human.Parent.Name.."'s Car"
			seat.Parent.Name = human.Parent.Name.."'s Car"
			s.Parent.SirenControl:clone().Parent = game.Players:findFirstChild(human.Parent.Name).PlayerGui
			seat.Start:Play()
			seat.Engine:Play()
			wait(3.07)
			seat.Start:Stop()
		end
	end
end

function onChildRemoved(child)
	if (child.Name == "SeatWeld") then	
		local human = child.part1.Parent:findFirstChild("Humanoid") 
		if (human ~= nil) then
			print("Human OUT")
			seat.Parent.Name = "PoliceCharger"
			seat.SirenControl.CarName.Value = "PoliceCharger"
			game.Players:findFirstChild(human.Parent.Name).PlayerGui.SirenControl:remove()
			seat.Engine:Stop()
		end
	end
end


script.Parent.ChildAdded:connect(onChildAdded)
script.Parent.ChildRemoved:connect(onChildRemoved)
