---------------------------------------------------------------

function onChildAdded(something)
	if something.Name == "SeatWeld" then
		local human = something.part1.Parent:findFirstChild("Humanoid") 
		if (human ~= nil) then
			script.Parent.Parent.Parent.RWD.Anchored = false
			wait(.5)
			script.Parent.Parent.Parent.lightbar1.middle.Yelp:Stop()
			script.Parent.Parent.Parent.lightbar1.middle.Wail:Stop()
			script.Parent.Parent.Parent.lightbar1.middle.Manual:Stop()
		end
	end
end

function onChildRemoved(something)
	if (something.Name == "SeatWeld") then	
		local human = something.part1.Parent:findFirstChild("Humanoid") 
		if (human ~= nil) then
			print("Human Found")
			script.Parent.Parent.Parent.RWD.Anchored = true
			wait(.2)
			script.Parent.Parent.Parent.lightbar1.middle.Yelp:Stop()
			script.Parent.Parent.Parent.lightbar1.middle.Wail:Stop()
			script.Parent.Parent.Parent.lightbar1.middle.Manual:Stop()
			
		end
	end
end


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