function WeldChanged(V)if V=="\080\097\114\101\110\116"and SeatWeld.Parent==nil then SeatWeld=nil Deactivate()BreakSeatConnections()Piano.Bench.Seat.Disabled=true wait(1)Piano.Bench.Seat.Disabled=false end end function ChildAdded(V)if V:IsA("\087\101\108\100")then local s=V.Part1 local j=s.Parent local l=game.Players:GetPlayerFromCharacter(j)if l then SeatWeld=V Activate(l)MakeSeatConnections()end end end


function WeldChanged(property)
	if property == "Parent" and SeatWeld.Parent == nil then
		SeatWeld = nil
		Deactivate()
		BreakSeatConnections()
		Piano.Bench.Seat.Disabled = true
		wait(1)
		Piano.Bench.Seat.Disabled = false
	end
end
function ChildAdded(child)
	if child:IsA("Weld") then
		local root = child.Part1
		local character = root.Parent
		local player = game.Players:GetPlayerFromCharacter(character)
		if player then
			SeatWeld = child
			Activate(player)
			MakeSeatConnections()
		end
	end
end
