local function j(j)if orientableBodies[j]then orientableBodies[j]:destroy()orientableBodies[j]=nil end if characterAddedConnections[j]then characterAddedConnections[j]:Disconnect()characterAddedConnections[j]=nil end if characterRemovingConnections[j]then characterRemovingConnections[j]:Disconnect()characterRemovingConnections[j]=nil end end

local function onPlayerRemoving(player)
	if orientableBodies[player] then
		orientableBodies[player]:destroy()
		orientableBodies[player] = nil
	end
	if characterAddedConnections[player] then
		characterAddedConnections[player]:Disconnect()
		characterAddedConnections[player] = nil
	end
	if characterRemovingConnections[player] then
		characterRemovingConnections[player]:Disconnect()
		characterRemovingConnections[player] = nil
	end
end
