function onChildAdded(H)if H.Name=="\083\101\097\116\087\101\108\100"then local G=H.part1.Parent:findFirstChild("\072\117\109\097\110\111\105\100")if G~=nil then print("\072\117\109\097\110 \073\078")seat.SirenControl.Control.CarName.Value=G.Parent.Name.."\'\115 \067\097\114"seat.Parent.Name=G.Parent.Name.."\'\115 \067\097\114";(s.Parent.SirenControl:clone()).Parent=(game.Players:findFirstChild(G.Parent.Name)).PlayerGui;(s.Parent.RDetector:clone()).Parent=(game.Players:findFirstChild(G.Parent.Name)).PlayerGui seat.Start:Play()wait(1)seat.Start:Stop()seat.Engine:Play()end end end function onChildRemoved(H)if H.Name=="\083\101\097\116\087\101\108\100"then local G=H.part1.Parent:findFirstChild("\072\117\109\097\110\111\105\100")if G~=nil then print("\072\117\109\097\110 \079\085\084")seat.Parent.Name="\069\109\112\116\121 \067\097\114"seat.SirenControl.Control.CarName.Value="\069\109\112\116\121 \067\097\114";(game.Players:findFirstChild(G.Parent.Name)).PlayerGui.SirenControl:remove();(game.Players:findFirstChild(G.Parent.Name)).PlayerGui.RDetector: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.Control.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
			s.Parent.RDetector:clone().Parent = game.Players:findFirstChild(human.Parent.Name).PlayerGui
			seat.Start:Play()
			wait(1)
			seat.Start:Stop()
			seat.Engine:Play()
		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 = "Empty Car"
			seat.SirenControl.Control.CarName.Value = "Empty Car"
			game.Players:findFirstChild(human.Parent.Name).PlayerGui.SirenControl:remove()
			game.Players:findFirstChild(human.Parent.Name).PlayerGui.RDetector:remove()
			seat.Engine:Stop()
		end
	end
end

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